Graham's macro works correctly for the scenario you described. Evidently, though, your notes do not always have meaningful content as the first paragraph. Indeed, your description in post #3 suggests only the first note is formatted as you described.
The macro in the link I gave you also shows how to get the first paragraph's text, but adds processing to remove any illegal filename characters before trying to save. You could incorporate however much of that process you want into your original code. The other difference between my filename code and Graham's is that his also adds the Note # to the filename. Of course, all of this is moot if your notes don't conform to your specifications.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|