Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
ccornett ccornett is offline
external usenet poster
 
Posts: 2
Default how to recognize an open document under another name

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.


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default how to recognize an open document under another name

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
Word MVP web site http://word.mvps.org


ccornett wrote:
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.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doesn't recognize that I have word to open a file Cailey Microsoft Word Help 1 June 2nd 07 05:57 PM
how do i get word to recognize other fractions ie 5/8 or 3/16 tom Microsoft Word Help 3 November 3rd 05 06:23 AM
New documents have some formatting I do not recognize and cannot . Valerie Page Layout 3 March 26th 05 04:51 AM
DOES NOT RECOGNIZE TRIAL PRODUCT KEY Dar Cruz Microsoft Word Help 1 March 9th 05 04:32 PM
Some fax machines don't recognize the XP fax service, what can be. רן ח Mailmerge 0 January 2nd 05 08:27 PM


All times are GMT +1. The time now is 04:31 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"