Mobile menu

Word macro help
Thread poster: Reed James

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






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
SDL MultiTerm 2017
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2017 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2017 you can automatically create term lists from your existing documentation to save time.

More info »



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