Hi
I'm using a macro to generate a PDF. I was wondering if and how to add a downloaded pdf (from URL) and add it to the array below.
Reason I want this is because I want the end to not to add the PDF as and extra document but have all in one PDF.
Thanks
I'm using a macro to generate a PDF. I was wondering if and how to add a downloaded pdf (from URL) and add it to the array below.
Reason I want this is because I want the end to not to add the PDF as and extra document but have all in one PDF.
Thanks
VBA Code:
Sub Save_as_pdf()
Dim FSO As Object
Dim s(1) As String
Dim sNewFilePath As String
Set FSO = CreateObject("Scripting.FileSystemObject")
s(0) = ThisWorkbook.FullName
ThisWorkbook.Sheets(Array("sheet1", "sheet2", "sheet3", "sheet4")).Select
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:="examplefile " & Date & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:= _
False, OpenAfterPublish:=True
End Sub