Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encoding change

Status
Not open for further replies.

bdsopt

Technical User
May 31, 2002
10
US
Using Word 2002 I need to write a macro in VB 6.3 to have all files open from the A:\ with Western encoding. Currently some files that I try to open brings up the File Conversion Encoding dialog box and I must choose between Windows (default), MS-DOS or UniCode-7.

I found a macro example that can open up a specific file on the A:\.

Documents.Open FileName:="A:\address.doc", _
Format:=wdOpenFormText, Encoding:=msoEncodingWestern

When I try to use A:\*.doc it doesn't work?

Please advise.

Thank you
 
Probably only handles one file at a time. Try getting a directory of the files *.DOC then looping through each individually.

lightseeker
 
Can you tell me how I would change my code to handle your situation? I also need to make sure that this new macro is performed at startup of Word.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top