Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I wrote a little program that I use to sort alot of data until a bug finally caught up with me today. Range("b1").Select 'selects cell b1 For i = 1 To intRowCount If ActiveCell.Offset(0, 2) = Null Then ActiveCell.Value = mapcell End If If InStr((ActiveCell.Offset(0, 2).Value), batchnumber) Then ActiveCell.Value = mapcell End If Next I Problem is the data put into one of the ActiveCell.Offset(0, 2) cells happends to be "- test" so it displays as #NAME and crashes my macro. Any sugestions would be helpfull -- icdoo ------------------------------------------------------------------------ icdoo's Profile: http://www.excelforum.com/member.php...o&userid=27342 View this thread: http://www.excelforum.com/showthread...hreadid=497095 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Database Query -- Data Type Mismatch | Excel Discussion (Misc queries) | |||
Type Mismatch Error when getting data from another workbook | Excel Programming | |||
Varient Int data type mismatch | Excel Programming |