ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need help with Word macro (https://www.excelbanter.com/excel-programming/318311-re-need-help-word-macro.html)

Claud Balls

Need help with Word macro
 
I'm having problems logging into that news group. Could somebody help me
with the following:

Documents(strSourceFile).SaveAs FileName:=strSourceFile & ".txt",
FileFormat:=wdFormatText


'strSourceFile is a word document that is not open
'My code returns a "bad document name" error



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com