Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-15-2013, 09:16 AM
dmarie123 dmarie123 is offline Number and date formatting Windows 7 64bit Number and date formatting Office 2007
Novice
Number and date formatting
 
Join Date: Dec 2012
Location: New Yuk
Posts: 23
dmarie123 is on a distinguished road
Default Number and date formatting

Newbie problems...


Hi all, I've been scouring the web for two things and I'm coming up empty. If this has already been asked I apologize and if someone could point me to the link I'd appreciate it.
I want to change the format of a date in a word document to a "long date" e.g., January 15, 2013 and in that same document convert an SSN w/o dashes to one with dashes. Both the dates and SSNs will vary from document to document.

Date Issue
In the documents I'm given there are two date ranges (which will be different in every document) given:

1. "between 01/15/2010-06/12/2011"

and

2. "of 01/15/2010-06/12/2011"

Both sets of dates would need to read "January 15, 2010" and/or "June 12, 2011". However, for the first example the hypen should be changed to "and" and in the second example the hyphen should be changed to "through".

SSN Issue
Throughout the same documents there are SSNs without dashes. They appear as either SSN: ######### OR SSN #########. There are other numbers in the document which are 9 digit numerics so I need the search parameters to include the "SSN" and "SSN: ".

Is there a way to insert the dashes with a macro? 123456789 to 123-45-6789? I would think I could search for "#########" and change it to "###-##-####" but my google searching was fruitless.

I probably won't be able to repay all you VBA masters anytime soon but I'm not above cookie bribery .
Thank you in advance for your time!

Last edited by dmarie123; 01-15-2013 at 02:20 PM.
Reply With Quote
 

Tags
dates, formatting-problem, number formatting



Similar Threads
Thread Thread Starter Forum Replies Last Post
Number and date formatting Date formatting kjxavier Excel 18 08-23-2011 08:21 AM
Number and date formatting Date formatting kjxavier Excel 6 08-12-2011 05:46 AM
Date formatting kjxavier Excel 0 08-10-2011 08:17 AM
Number and date formatting Phone number formatting Mark Micallef Outlook 1 08-04-2010 02:38 PM
Help needed using the serial number date with sumifs - whole office is stumped FraserKitchell Excel 3 01-06-2010 12:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft