How to use VBA macros to print a word document
Posted on 2003-12-01
I've designed a page in word and saved it as an asp page (word.asp). I would like to have a link from another asp page to automatically open the asp page(word.asp) in word, print a copy of it and then close the document again. I'm building this for an intranet application, so sending word documents which contain macros is not an issue. Where I'm stuck is basically accessing the active document from a vba macro as well as including the macro in the document when it is sent to word
the asp page is sent to word like this..
Response.ContentType = "application/msword";
the macro code so far...
Private Sub Document_Open()
Application.Visible = False
I don't think the macro gets included when sent to word although I had it signed and enabled signed macros in word. any help would be greatly appreciated