I have an Excel generated Quote Form and when printing the completed quote form I also need to print a MS Word Document named Terms and Conditions. Is there any VB code that will do this and where would I put the code.
I have an Excel generated Quote Form and when printing the completed quote form I also need to print a MS Word Document named Terms and Conditions. Is there any VB code that will do this and where would I put the code.
There are quite a few hits on google. Here is an example: https://stackoverflow.com/questions/...sing-excel-vba
Click the * to say thanks.
I have read this example and many others but none of them explain how and where to put this code. I have inserted the code into "This Worksheet" but it doesn't work.
Add that code in a standard module likeand then, in your macro that prints the form from excel, add this line after printing:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
There is no Macro used for printing the quote.
Upload a sample. To upload: GO Advanced - Manage Attachments -
Both Excel and Word file uploaded.
Assign first macro to a button and change the red colored parts:
![]()
Please Login or Register to view this content.
Thanks Paul, I will test it at work tomorrow (Wednesday).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks