Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Your code worked OK for me but I am confused. In your original posting you
were looping through column C for 500 rows... now you are looping through column A. So my code appears to be redundant. Any errors (Type mismatch) are probably due to the data in column C (or A)i.e. non-numeric data which cannot be converted to LONG. "jhahes" wrote: Toppers, I put in the dim cell as range and I am getting Run-time error '13': Type Mismatch Here is my complete code If Sheet2.Visible = xlSheetHidden Then Sheet2.Visible = xlSheetVisible End If Sheet2.Activate Range("A2").Select Do ActiveCell.Value = CLng(ActiveCell.Value) ActiveCell.Offset(1, 0).Select Loop Until ActiveCell.Value = "" Dim cell As Range For Each cell In Range("C2:C500") If cell.Value < "" Then cell.Value = CLng(cell.Value) Next Thanks for any help..... Josh -- jhahes ------------------------------------------------------------------------ jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596 View this thread: http://www.excelforum.com/showthread...hreadid=524984 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Numbering rows and skipping blanks | Excel Discussion (Misc queries) | |||
Skipping Blanks (Again) | Excel Discussion (Misc queries) | |||
Skipping Blanks | Excel Discussion (Misc queries) | |||
Skipping blanks | Excel Discussion (Misc queries) | |||
Paste Special Skip Blanks not skipping blanks, but overwriting... | Excel Discussion (Misc queries) |