![]() |
#6
|
||||
|
||||
![]()
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] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Splitting Word Document based on line content | TwiceOver | Word VBA | 23 | 10-12-2015 02:01 PM |
Document Filename Generator for Referencing | john.adams | Word | 10 | 03-26-2013 12:14 AM |
Document splitting | MsLavigne | Word | 2 | 05-09-2012 05:52 AM |
![]() |
Knawl | Word | 11 | 10-10-2011 03:00 AM |
![]() |
dlawson | Word | 4 | 04-14-2009 12:22 PM |