![]() |
#10
|
|||
|
|||
![]()
Hi Paul,
Regarding your questions: Quote:
To further complicate things, the SSNs/SSIDs that appear with a colon are in a section of identifiers where the "SSN: 1234567899" is the only thing on the line so once I run the macro it would change the text like so: From this: Student Name City: Chicago SSID: 12345678999 SSN: 123456789 To this: Student Name City: Chicago SSID: 12345678999 (Approved: ) SSN: 12-3456789 (You'll see there's a small change above with the hyphen now falling after the second digit, this was recently changed in our requirements, ugh.) The rest of the SSIDs and SSNs that do not have a colon appear in the middle of paragraphs so regular spacing would apply. By regular I mean if it happens to fall the way this one does ==> SSN 123456789 where the number is on the next line then that's acceptable, it's also acceptable to fall as SSN 123456789 in the middle of a sentence. Is there a way around the hyphen displaying with formatting so it appears as the shorter one? Isn't that what the below does? Code:
.ClearFormatting .Replacement.ClearFormatting I'd MUCH rather use your most recent code (with the needed updates) but I wanted to at least attempt to resolve it on my own, I definitely don't mean to be one of the people that asks for help and then doesn't use it. I appreciate every single minute of your help. Thank you, Donna Last edited by dmarie123; 03-08-2013 at 04:13 PM. |
Tags |
excel 2007, find and replace, vba in microsoft word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Paste special an Excel range into Outlook as an Excel Worksheet | charlesh3 | Excel Programming | 3 | 02-04-2013 04:33 PM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
![]() |
slayda | Word | 3 | 09-14-2011 02:16 PM |
![]() |
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |
Find and Replace within range | anil3b2 | Word VBA | 3 | 12-01-2010 02:35 AM |