What temporary filename does word give to a new document

C

camilla

I create a new document I suppose that word give it a temporary name (I
guess it look like ~1234.tmp), how can I get that name so I can reference to
that?

Regards
Camilla
 
D

Doug Robbins - Word MVP

Hi Camilla,

The temporary name is Document(n)

It would be better to use

Dim NewDoc as Document

Set NewDoc = Documents.Add

and then refer to NewDoc

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

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