• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

format vba

Hello
What is the vba to format a entire column for this special format:
00-0000-0000-0?

Thank you
0
Rayne
Asked:
Rayne
1 Solution
 
aikimarkCommented:
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
 
RayneAuthor Commented:
thank you Aikimark :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now