Re: Print to appended PDF file
Thanks for the pointer. I found it and it seems a bit daunting for me. Plus I'd still have to solve the problem of too many pages...each day's data takes up about a third of a page.
So I think I'll try a different route.
channelNumber = Application.DDEInitiate( _
app:="WinWord", _
topic:="C:\docs\filename.DOC")
Set rangeToPoke = Worksheets("Sheet1").Range("Print_Area")
Application.DDEPoke channelNumber, "\EndOfDoc", rangeToPoke
Application.DDETerminate channelNumber
This will copy the range into an existing Word document. Once all days have been "exported" in this manner, I'll create a PDF from the resulting Word document.
After the above code runs, I need to save the Word document and then close it so it can be appended to by the next day of data. Is this forum the right place to get this kind of help? Should I start a new thread?
Thanks,
Richard