E
Ernest Gunn
Hello, all
I am trying to automate printing for a series of documents using VB6. I can
do this easily
Set mwd = New Word.Application
Word.Documents.Open FileName:="C:\Documents and Settings\Ernie\My
Documents\Highland Park\Seating Charts\6th.doc"
Documents("6th.doc").PrintOut
Documents("6th.doc").Close savechanges:=False
I have trouble when I want to create a new document based on a template with
an autorun macro.
Documents.Add Template:="oCalendar.dot"
The oCalendar.dot template opens with a UserForm and I'd like my project to
pass the necessary parameters to it, then send the enter keypress, then wait
while the document is created so that I can print it. I'm stumped and I'd be
grateful for any help.
Thanks in advance
Ernest Gunn
I am trying to automate printing for a series of documents using VB6. I can
do this easily
Set mwd = New Word.Application
Word.Documents.Open FileName:="C:\Documents and Settings\Ernie\My
Documents\Highland Park\Seating Charts\6th.doc"
Documents("6th.doc").PrintOut
Documents("6th.doc").Close savechanges:=False
I have trouble when I want to create a new document based on a template with
an autorun macro.
Documents.Add Template:="oCalendar.dot"
The oCalendar.dot template opens with a UserForm and I'd like my project to
pass the necessary parameters to it, then send the enter keypress, then wait
while the document is created so that I can print it. I'm stumped and I'd be
grateful for any help.
Thanks in advance
Ernest Gunn