Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() 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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
converting numbers to text | New Users to Excel | |||
Cells formated as numbers are calculating like text | Excel Discussion (Misc queries) | |||
macro to change numbers to names | Excel Worksheet Functions | |||
how to format numbers stored as text or vice versa to use vlookup | Excel Worksheet Functions |