Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pedros
 
Posts: n/a
Default Convertin Text to numbers within a Macro??


I am recording a Macro that involves and If statement. I want the macro
to then paste over the if statements with values (1 & 0). When I paste
values over the if statement the cells are formatted as text and
although I highlight all of them and format cells as numbers in the
macro it doesn't seem to record the step.

How can I have these cells formatted as numbers within the macro??

thanks.


--
Pedros
------------------------------------------------------------------------
Pedros's Profile: http://www.excelforum.com/member.php...o&userid=28202
View this thread: http://www.excelforum.com/showthread...hreadid=477775

  #2   Report Post  
Rowan Drummond
 
Posts: n/a
Default Convertin Text to numbers within a Macro??

Maybe:
Selection.NumberFormat = "0"
or
Selection.NumberFormat = "General"

Hope this helps
Rowan

Pedros wrote:
I am recording a Macro that involves and If statement. I want the macro
to then paste over the if statements with values (1 & 0). When I paste
values over the if statement the cells are formatted as text and
although I highlight all of them and format cells as numbers in the
macro it doesn't seem to record the step.

How can I have these cells formatted as numbers within the macro??

thanks.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
converting numbers to text gls858 New Users to Excel 2 October 18th 05 10:56 PM
Cells formated as numbers are calculating like text MM_BAM Excel Discussion (Misc queries) 4 July 7th 05 01:29 AM
macro to change numbers to names WAB Excel Worksheet Functions 3 April 16th 05 02:14 PM
how to format numbers stored as text or vice versa to use vlookup teneagle Excel Worksheet Functions 1 February 3rd 05 11:41 PM


All times are GMT +1. The time now is 11:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"