Solved

format vba

Posted on 2014-04-15
2
364 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
Comment Utility
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
Comment Utility
thank you Aikimark :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now