If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Macro to Format datatype of a cell

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-04, 12:40
inho78 inho78 is offline
Registered User
 
Join Date: Sep 2004
Posts: 113
Macro to Format datatype of a cell

Hi,
I am unfamilar with vb and excel and I was wondering how you I could write a macro so it sets the format of the column(s) everytime. In this case I want all columns to be in type general unless it is a number or a date. Thank you so much guys
Reply With Quote
  #2 (permalink)  
Old 11-22-04, 04:31
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Having a quick back over the posts and noticed this one didnt have an answer so just in case you havn't solved this one yet,

Have a Look at the NumberFormat Property of the Range Object in the Help File this lets you change the format of the cells in the same way that you would in the custom Option of the Format cells dialog box
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On