Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

save as ("Filename and path")

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FIRSTROUNDKO - 19 Jul 2007 11:56 GMT
Hi

Please can somebody tell me how i save a document as its filename and path  

I can extract the filename and path:

NormalTemplate.AutoTextEntries("Filename and path").Insert Where:= Selection.
Range

I think it should look something like

Doc2.SaveAs FileName:="c:\sfr\sfrsaves\" & **************(Filename and path)
***************.Name

Thanks in advance
Jonathan West - 19 Jul 2007 13:35 GMT
> 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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.