Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Excel Marco - Replacing leading zero for Zip Code Expand / Collapse
Posted Friday, May 31, 2013 2:06 PM


Group: General Forum Members
Last Login: Today @ 3:53 PM
Points: 112, Visits: 273

I am looking for help to understand how to create an Excel Macro that will update all records in a column that have less than 5 digits with a leading zero. I have found a way to make this work by Cell but cannot get it to work by updating all records in a column.
Post #1458869
Posted Friday, May 31, 2013 3:04 PM



Group: General Forum Members
Last Login: Today @ 3:12 PM
Points: 5,602, Visits: 12,514
Not really the right forum to ask, but there's a format option for zip codes in the special category. Otherwise, you can use the personalized format and enter five zeros (00000).

Luis C.
General Disclaimer:
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1458885
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse