Dear all,
I'm trying to find a solution for a problem. I have lots of excel files with lots of worksheets in it (with data and very complex graphs of course). The data in the worksheets are sas generated output.
I have to get a couple of worksheets from every excel file into a PDF file and automate this process.
What have I done already? I have an excel file with all the info like the name of the excel file, name of the worksheet and where it has to save the worksheet as a pdf. This is also generated by SAS.
Maybe the following example gives a clearer picture of what I mean.
Test.xls Worksheet1 C:\PDF Generation\Dir1
Test.xls Worksheet4 C:\PDF Generation\Dir2
Test2.xls Worksheet2 C:\PDF Generation\Dir3
Test2.xls Worksheet7 C:\PDF Generation\Dir4
This list goes on and on...
What would be the best/easiest solution to get all the worksheets in pdf files and in the right dir?
Perhaps with some VB code, this would go easier than with SAS? Problem is that I'm not a VB programmer and it has to go quick. If somebody could provide me with VB code that could accomplish this, I would be very grateful!!
ps. I've tried to call a macro of excel in SAS, but you always have the problem that it askes where and what name to save for the PDF.
Kind regards!
I'm trying to find a solution for a problem. I have lots of excel files with lots of worksheets in it (with data and very complex graphs of course). The data in the worksheets are sas generated output.
I have to get a couple of worksheets from every excel file into a PDF file and automate this process.
What have I done already? I have an excel file with all the info like the name of the excel file, name of the worksheet and where it has to save the worksheet as a pdf. This is also generated by SAS.
Maybe the following example gives a clearer picture of what I mean.
Test.xls Worksheet1 C:\PDF Generation\Dir1
Test.xls Worksheet4 C:\PDF Generation\Dir2
Test2.xls Worksheet2 C:\PDF Generation\Dir3
Test2.xls Worksheet7 C:\PDF Generation\Dir4
This list goes on and on...
What would be the best/easiest solution to get all the worksheets in pdf files and in the right dir?
Perhaps with some VB code, this would go easier than with SAS? Problem is that I'm not a VB programmer and it has to go quick. If somebody could provide me with VB code that could accomplish this, I would be very grateful!!
ps. I've tried to call a macro of excel in SAS, but you always have the problem that it askes where and what name to save for the PDF.
Kind regards!