James,
I have used Selection.copy to copy a filename in Word macro.
Can I copy it to a variable?
Then I should be able to open a file which using the content of the variable instead of using the actual file name directly.
User Profile
Collapse
-
James,
I opened the word file and copied the contents.
I need to know how to copy it to a variable?Leave a comment:
-
xips started a topic Reading data from a word file and opening the file with the datain Visual BasicReading data from a word file and opening the file with the data
I have a word document which contains file names (1 per line)
I want to use word macro to open that doc, pick the contents on line 1 and open the file from a specific path, edit the file and close it.
I want to read the next file name from the next line and do the above for all the lines in the document.
No activity results to display
Show More
Leave a comment: