Click here to monitor SSC
SQLServerCentral is supported by Redgate
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: Monday, January 11, 2016 3:55 PM
Points: 138, Visits: 421

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: Yesterday @ 5:44 PM
Points: 7,951, Visits: 17,209
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?

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

Add to briefcase

Permissions Expand / Collapse