Solved

format vba

Posted on 2014-04-15
2
366 Views
Last Modified: 2014-04-15
Hello
What is the vba to format a entire column for this special format:
00-0000-0000-0?

Thank you
0
Comment
Question by:Rayne
2 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40002840
set the .NumberFormat property
some examples
activesheet.columns(3).NumberFormat="00-0000-0000-0"
sheets(1).columns(3).NumberFormat="00-0000-0000-0"
worksheets("sheet1").range("C:C").NumberFormat="00-0000-0000-0"

Open in new window

0
 

Author Comment

by:Rayne
ID: 40003079
thank you Aikimark :)
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question