已將圖片單元格的範圍複製到單獨的工作表中here.單元格範圍根據另一個工作表上的自我選擇自動填充 - 因此,這樣可以有效地生成一系列圖像,是和指標包。複製圖片後不導出爲PDF的Excel圖像
現在已經寫了一些內容導出爲PDF - 打印區域根據所選指示符的數量使用偏移功能。
但是,導出到PDF運行,但沒有拿起圖片 - 你能幫忙嗎?
Sub printPDFSave()
Dim rng As Range
Dim fPathFile As Variant
Set rng = [Destination]
fPathFile = Application.GetSaveAsFilename(filefilter:="PDF Files (*.pdf), *.pdf")
If fPathFile <> False Then
rng.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPathFile, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End If
End Sub
您可以檢查是否爲圖像的屬性'打印object'設置? (右鍵單擊圖像,「格式圖片」,「屬性」) – FunThomas
是打印對象被選中 – tj123