suvmitra
asked on
Not Isnumeric Delete VBA
Hi,
I need help to format this report. I need a VBA procedure which will be finding out which consequtive cells of ColA is Not IsNumeric and will delete the entire row of the First record.
I have a sample attached as "Data" and I need the output in "Report" (as attached).
I am using Excel 2003.
EE.xls
I need help to format this report. I need a VBA procedure which will be finding out which consequtive cells of ColA is Not IsNumeric and will delete the entire row of the First record.
I have a sample attached as "Data" and I need the output in "Report" (as attached).
I am using Excel 2003.
EE.xls
ASKER
Invalid procedure call or argument:
If IsNumeric(Left(Cells(lrow, "a").Value, x)) = False And IsNumeric(Left(Cells(lrow + 1, "a").Value, y)) = False Then
If IsNumeric(Left(Cells(lrow,
ASKER
This
ASKER
This Procedure is working fine with the Sample sheet. But it fails for some reason with this data (as attached).
EE.xls
EE.xls
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent help Saurabh ..Have a nice day ahead :)
ASKER
Hi,
I need two exception in this rule. The procedure should ignore the line in the below cases.
I need to keep line items if col A contains:
Wire or values like AS-8000225
# 1 Exception: UCase(.Cells(x, "A").Value) Like "WIRE"
# 2 Exception: Not IsNumeric(Left(.Cells(x, "A").Value, 2)) And IsNumeric(Right(.Cells(x, "A").Value, 6))
Please help.
Saurabh..
Open in new window