M
Mark Findlay
I currently use the following VBA script to print a WORD doc automatically.
oWord = new ActiveXObject("Word.Application");
oWord.Visible = false;
oWord.Documents.Open(sFilename,false,true);
oWord.Documents.Item(1).PrintOut(false);
oWord.Documents.Close();
I would like to now modify the script so that it can PASTE the contents of
the clipboard into the doc before printing.
I have searched the document object model but can't seem to locate how to do
this.
Can anyone lend a hand?
Many thanks!
Mark
oWord = new ActiveXObject("Word.Application");
oWord.Visible = false;
oWord.Documents.Open(sFilename,false,true);
oWord.Documents.Item(1).PrintOut(false);
oWord.Documents.Close();
I would like to now modify the script so that it can PASTE the contents of
the clipboard into the doc before printing.
I have searched the document object model but can't seem to locate how to do
this.
Can anyone lend a hand?
Many thanks!
Mark