Hi again :)
I saw some examples of this being done with excel exports and tried modifying them for .pdf use but I can't seem to get it to work.
I have a macro which is converting some reports to .pdf and I want to append today's date to them since the reports will be stored for historical reference.
Here is the code I have, which I found by searching similar topics around the web, including here :) This is being done on the "Output File" line of the exportwithforma tting function in the macro generator:
The report comes out but it stops at "Paper Inventory Report" and never appends the date or file extension. Can someone please help me out with this? Is it a syntax problem? I've seen people say this has to be done in VBA and not macro's but I don't have any idea how to make it work in VBA.
Thanks in advance for any and all help.
I saw some examples of this being done with excel exports and tried modifying them for .pdf use but I can't seem to get it to work.
I have a macro which is converting some reports to .pdf and I want to append today's date to them since the reports will be stored for historical reference.
Here is the code I have, which I found by searching similar topics around the web, including here :) This is being done on the "Output File" line of the exportwithforma tting function in the macro generator:
Code:
"C:\Users\someuser\Desktop\Paper Inventory Report" & Format(Date(),"yymmdd") & ".pdf"
Thanks in advance for any and all help.
Comment