Macro Placement

G

Guest

The following answer was supplied to me about a question I posted:

~~~~~~~~~~~
No, that don't. An easy to get them to is to Preview the printing of the
document and then close the Print Preview.

It can be done with a macro

With ActiveDocument
.PrintPreview
.ClosePrintPreview
End With

That runs so quickly that you would hardly notice it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Me said:
Why would some fields in a Word 2003 document automatically update and others won't?

For example, the filename filed updates as it should, but in order to have
the lastsavedby and savedate fields update, I have to go into the fields (that are in a footer) and F9 to get them to update.

Shouldn't they all auto update?

Thanks.
~~~~~~~~~~~

My question is where do I put the macro? I'm not very familiar with coding,
so I'm not sure where I out this code. I didn't repsond to the original post
because it's quite a few pages back.

Thank you.
 
G

Guest

See http://www.gmayor.com/installing_macro.htm .

Me said:
The following answer was supplied to me about a question I posted:

~~~~~~~~~~~
No, that don't. An easy to get them to is to Preview the printing of the
document and then close the Print Preview.

It can be done with a macro

With ActiveDocument
.PrintPreview
.ClosePrintPreview
End With

That runs so quickly that you would hardly notice it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP


~~~~~~~~~~~

My question is where do I put the macro? I'm not very familiar with coding,
so I'm not sure where I out this code. I didn't repsond to the original post
because it's quite a few pages back.

Thank you.
 
G

Guest

Gotcha. So I waould just need to add a "Sub" name for this little bit of
code and it will run everytime Word runs?
 
C

Charles Kenyon

No.
A macro does require a Sub declaration, though.
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm

To get it to run when Word starts (if that is what you want?) you need to
give it a special name. This is explained in the link above.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
G

Guest

Ok.

Thanks to both of you!


Charles Kenyon said:
No.
A macro does require a Sub declaration, though.
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm

To get it to run when Word starts (if that is what you want?) you need to
give it a special name. This is explained in the link above.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top