Mobile menu

Word macro help
Thread poster: Reed James

Reed James
Chile
Local time: 03:10
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: 09:10
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: 03:10
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






memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »
Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

More info »



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