Mobile menu

Word macro help
Thread poster: Reed James

Reed James
Chile
Local time: 22:48
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: 02:48
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: 22:48
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






Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



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