I found some code to create and object for printing a WORD and EXCEL document.
I have found bits and pieces of the options from multiple websites.
Is there a list (Anywhere) of all the possible commands.
eg
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open RptToPrint
WordObj.ActiveDocument.pagesetup.PaperSize = 2 'Set to letter size
WordObj.ActiveDocument.Save
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
When you do it in excel it has different syntax options to perform the same function.
It can drive you crazy.
Is there anyplace where I can get all the options?
When you type in WordObj. it does not give you all the options.
Thanks.
Remember when... everything worked and there was a reason for it?
I have found bits and pieces of the options from multiple websites.
Is there a list (Anywhere) of all the possible commands.
eg
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open RptToPrint
WordObj.ActiveDocument.pagesetup.PaperSize = 2 'Set to letter size
WordObj.ActiveDocument.Save
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
When you do it in excel it has different syntax options to perform the same function.
It can drive you crazy.
Is there anyplace where I can get all the options?
When you type in WordObj. it does not give you all the options.
Thanks.
Remember when... everything worked and there was a reason for it?