Using quotes in the documents.open command

E

Edward

When I capture the file:eek:pen sequence in a macro, it shows the filename: in a
triple set of quotes.
I'm writing a macro to cycle through a bunch of files, opening each one,
adding headers and footers, and closing and saving, and wanted to use the
code captured in the macro recorder for file:eek:pen in the macro. I had to
choose a file to open to be able to end the macro recorder, and when I
looked at the generated macro code, there ws the filename in a triple set of
"""quotes"""

Do I need to use any quotes? One set? Two sets? No sets? Why did the macro
generate three sets of quotes?

Also, isn't it possible to use dot notation to set the filename ?

Thanks
 
E

Edward

Actually, I have a working algorithm, but was just curious about the weird
syntax of three sets of quotes. Turns out I discovered that the variable
holding the filename doesn't need to be in quotes, which makes sense, but
three sets of quotes around a filename is really confusing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top