I
Ian McLeish
Longwinded story, so here goes.....
I am an optician, using a recall program by a company now vanished.
This program has the capability to print information from it's database to
word document templates, using mail merge fields. By adding an autoopen macro
to these .dot files I could get them to open, print and then close
automatically. What has this to do with Publisher? The information inserted
by word is then printed onto a record card which is pre-printed from a
publisher document.
It occurred to me that I might kill "two birds with one stone" if I could
perform the mail merge and print the record card at the same time- without
pre-printing the blank record cards.
My problems are.
The recall software will only call one of four files called GOS1a.dot to
GOS4a.dot.
I found the shell function in word which can open publisher, and I managed
to get a Publisher macro going which would toggle the mergefields in
Publisher, print and then close publisher. But I would like to be able to
autorun this macro, so that whenever the word macro opens publisher it
automatically does the above. I cannot find an autorun function in Publisher,
but wondered if I could use word to get round that? I couldn't get publisher
to open the required document either, though the macro worked when the
document was open, but I am sure I will be able to sort that one out myself.
It is a shame Publisher doesn't have a record macro function, like word, as
even a complete novice like me learned a fair bit (though it was a while
ago), just by recording macros, then viewing their text listing. I tried to
record a macro of opening a doc in word and then sort of copying the macro
to Publisher, which failed miserably!
As I said, I am a complete novice.
Could anyone suggest a way round this?
Thanks in anticipation,
Ian
I am an optician, using a recall program by a company now vanished.
This program has the capability to print information from it's database to
word document templates, using mail merge fields. By adding an autoopen macro
to these .dot files I could get them to open, print and then close
automatically. What has this to do with Publisher? The information inserted
by word is then printed onto a record card which is pre-printed from a
publisher document.
It occurred to me that I might kill "two birds with one stone" if I could
perform the mail merge and print the record card at the same time- without
pre-printing the blank record cards.
My problems are.
The recall software will only call one of four files called GOS1a.dot to
GOS4a.dot.
I found the shell function in word which can open publisher, and I managed
to get a Publisher macro going which would toggle the mergefields in
Publisher, print and then close publisher. But I would like to be able to
autorun this macro, so that whenever the word macro opens publisher it
automatically does the above. I cannot find an autorun function in Publisher,
but wondered if I could use word to get round that? I couldn't get publisher
to open the required document either, though the macro worked when the
document was open, but I am sure I will be able to sort that one out myself.
It is a shame Publisher doesn't have a record macro function, like word, as
even a complete novice like me learned a fair bit (though it was a while
ago), just by recording macros, then viewing their text listing. I tried to
record a macro of opening a doc in word and then sort of copying the macro
to Publisher, which failed miserably!
As I said, I am a complete novice.
Could anyone suggest a way round this?
Thanks in anticipation,
Ian