T
TR Young
I am creating a Macro that will save the currently open .doc file as a .txt
file of the same name. In the following line, what do I need to change/add
to make the file save as the same name as the currently open file?
ActiveDocument.SaveAs FileName:="<current filename>.txt", FileFormat:= _
I am new to VBA, and I don't know what the code callout is for the current
filename, and I know that is what has to go in the line of code where I have
"<current filename>" typed in for this example. I also realize that I will
not need the quotation marks around the code command.
file of the same name. In the following line, what do I need to change/add
to make the file save as the same name as the currently open file?
ActiveDocument.SaveAs FileName:="<current filename>.txt", FileFormat:= _
I am new to VBA, and I don't know what the code callout is for the current
filename, and I know that is what has to go in the line of code where I have
"<current filename>" typed in for this example. I also realize that I will
not need the quotation marks around the code command.