共用方式為


PageSetup.LeftFooterPicture 屬性 (Excel)

會傳回 Graphic 物件,代表頁尾左側區段的圖片。 用以設定關於圖片的屬性。

語法

運算式LeftFooterPicture

表達 代表 PageSetup 物件的 變數。

註解

LeftFooterPicture 是一個唯讀屬性,但並非其上所有屬性都是唯讀的。

必須是LeftFooter屬性字串的一部分, "&G" 影像才會顯示在左頁尾中。

範例

下列範例會從 C:\ 新增標題為 Sample.jpg 的圖片頁尾左側區段的磁片磁碟機。 假設在 C:\ 磁碟下,有名為 Sample.jpg 的檔案。

Sub InsertPicture() 
 
 With ActiveSheet.PageSetup.LeftFooterPicture 
 .FileName = "C:\Sample.jpg" 
 .Height = 275.25 
 .Width = 463.5 
 .Brightness = 0.36 
 .ColorType = msoPictureGrayscale 
 .Contrast = 0.39 
 .CropBottom = -14.4 
 .CropLeft = -28.8 
 .CropRight = -14.4 
 .CropTop = 21.6 
 End With 
 
 ' Enable the image to show up in the left footer. 
 ActiveSheet.PageSetup.LeftFooter = "&G" 
 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應