Word macro help
Thread poster: Reed James

Reed James
Chile
Local time: 23:04
Member (2005)
Spanish to English
Dec 12, 2006

Hello.

I have a word macro that will save a file to a specified directory. You have to name the file and the macro will always name it so (e.g. "translation") This is the code I have:

ActiveDocument.SaveAs FileName:="C:\Program Files\PocoMail4\Attach\translation"

However, I want to save the file with whatever name I gave it when I initially saved it to a different directory. So if I named it "certificate", I want the macro to save it as "certificate".

How could I go about doing this?

Thanks.

Reed


Direct link Reply with quote
 

Antoní­n Otáhal
Local time: 05:04
Member (2005)
English to Czech
+ ...
not so hard Dec 12, 2006

Reed D. James wrote:

Hello.

I have a word macro that will save a file to a specified directory. You have to name the file and the macro will always name it so (e.g. "translation") This is the code I have:

ActiveDocument.SaveAs FileName:="C:\Program Files\PocoMail4\Attach\translation"

However, I want to save the file with whatever name I gave it when I initially saved it to a different directory. So if I named it "certificate", I want the macro to save it as "certificate".

How could I go about doing this?

Thanks.

Reed


For example this code should work:

MyString = ActiveDocument.Name

ActiveDocument.SaveAs FileName:="C:\Program Files\PocoMail4\Attach\" & MyString

HTH
Antonin


Direct link Reply with quote
 

Reed James
Chile
Local time: 23:04
Member (2005)
Spanish to English
TOPIC STARTER
Thanks Antonin Dec 12, 2006

Yes, that did the trick! Thanks a lot!

Reed


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Word macro help

Advanced search






WordFinder
The words you want Anywhere, Anytime

WordFinder is the market's fastest and easiest way of finding the right word, term, translation or synonym in one or more dictionaries. In our assortment you can choose among more than 120 dictionaries in 15 languages from leading publishers.

More info »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »



All of ProZ.com
  • All of ProZ.com
  • Term search
  • Jobs