Word macro help
Thread poster: Reed James

Reed James
Chile
Local time: 15:20
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: 20:20
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: 15:20
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






LSP.expert
You’re a freelance translator? LSP.expert helps you manage your daily translation jobs. It’s easy, fast and secure.

How about you start tracking translation jobs and sending invoices in minutes? You can also manage your clients and generate reports about your business activities. So you always keep a clear view on your planning, AND you get a free 30 day trial period!

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 »



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