Hi all,
I am trying to create a macro that will export a few sheets from a few Excel files to 1 PDF file.
Don't know if this is even possible as i cannot find anything on it on the internet.
The below code works fine on 1 or more sheets from 1 workbook.
What i would ultimately prefer to have is the following.
An Excel file containing the macro and a sheet where in column A i can enter the filepath and filename. In column B i will then enter the sheetname that i would like in the PDF.
So, the macro should loop through the list on that sheet.
Is this possible? (starting with the multiple file to 1 pdf, i can figure out the rest)
Thanks for the help!
Regards,
Hans
I am trying to create a macro that will export a few sheets from a few Excel files to 1 PDF file.
Don't know if this is even possible as i cannot find anything on it on the internet.
The below code works fine on 1 or more sheets from 1 workbook.
Code:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _</SPAN>
Filename:="D:\Test.pdf", _</SPAN>
Quality:=xlQualityStandard, IncludeDocProperties:=True, _</SPAN>
IgnorePrintAreas:=False, OpenAfterPublish:=False
What i would ultimately prefer to have is the following.
An Excel file containing the macro and a sheet where in column A i can enter the filepath and filename. In column B i will then enter the sheetname that i would like in the PDF.
So, the macro should loop through the list on that sheet.
Is this possible? (starting with the multiple file to 1 pdf, i can figure out the rest)
Thanks for the help!
Regards,
Hans