> Hi
>
[quoted text clipped - 13 lines]
>
> Thanks in advance
If you just use the Save method, instead of SaveAs, the document is saved
under the same name is had before. If you want to find out the full pathname
of the document, you can read the FullName property of Doc2.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
FIRSTROUNDKO - 19 Jul 2007 14:48 GMT
The document is usually labelled incorrectly and would mean nothing to
anybody, it has been placed in the correctly folder manually. hence i need to
extract the name of the folder. Any more ideas?
>> Hi
>>
[quoted text clipped - 5 lines]
>under the same name is had before. If you want to find out the full pathname
>of the document, you can read the FullName property of Doc2.
Jonathan West - 19 Jul 2007 14:53 GMT
> The document is usually labelled incorrectly and would mean nothing to
> anybody, it has been placed in the correctly folder manually. hence i need
> to
> extract the name of the folder. Any more ideas?
The name of the folder is the Path property of the document.
Forget about code for a moment - what are you trying to achieve?

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
FIRSTROUNDKO - 19 Jul 2007 15:17 GMT
I am trying to rename a document in as subfolder to the same name as the
subfolder
>> The document is usually labelled incorrectly and would mean nothing to
>> anybody, it has been placed in the correctly folder manually. hence i need
[quoted text clipped - 4 lines]
>
>Forget about code for a moment - what are you trying to achieve?
Jonathan West - 20 Jul 2007 10:54 GMT
>I am trying to rename a document in as subfolder to the same name as the
> subfolder
Just so we can be clear, can you give an example of the old and new names of
a file?

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup