how to recognize an open document under another name

G

Guest

I am writing macros to use on hundreds of documents with different names. I
am copying from each and pasting in a different template. When I have the
document I am currently working on open, how do I get Word to recognize the
specific document name as a generic one (i.e. doc1)? Otherwise I will have
to write in a separate file name for each document that has a macro applied.
I have tried using Dim statements, Set oWord, etc. Please help! Thanks.
 
G

Graham Mayor

It is difficult to envisage what you are trying to do, but the current
document is the ActiveDocument?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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