Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to convert all numbers in Column H from text to number. Some
numbers are text (with an apostrophe at the beginning) and some are just plain number. If I put a 1 in an empty cell and manual do a Copy/Paste Special/Multiply, it works. This is what I wrote: Sub ConvertPINtoNum() Range("H2").Select RowCount = 2 Do While Range("F" & (RowCount)) < "" Range("H" & (RowCount)) = ("H" & (RowCount)) * 1 RowCount = RowCount + 1 Loop End Sub I'm getting a type mismatch error on the line Range("H" & (RowCount)) = ("H" & (RowCount)) * 1 I also tried but I'm getting a type mismatch error on the line Range("H" & (RowCount)) = ("H" & (RowCount)) * 1 but that gave me the type mismatch error as well. Any help very much appreciated. Thanks, Dee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert text number to number formate | Excel Discussion (Misc queries) | |||
Convert a number formatted as text to a number in a macro | Excel Programming | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
not able to convert text, or graphic number to regular number in e | Excel Worksheet Functions | |||
Convert number in text format to number | Excel Programming |