Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I made this code as simple as possible to get to the bottom of th problem. Now instead of failing some of the tine, it dies all th time. Any insight please? Sub Macro1() ' For i = 1 To 1000 Columns("A:A").Select FoundIt = Selection.Find(What:=i, _ After:=ActiveCell, _ LookIn:=xlFormulas, _ LookAt:=xlPart, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False, _ SearchFormat:=False).Activate i = i + 1 Next End Su -- GC ----------------------------------------------------------------------- GCF's Profile: http://www.excelforum.com/member.php...nfo&userid=412 View this thread: http://www.excelforum.com/showthread.php?threadid=26694 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) | Excel Programming | |||
Run-time error '11' & Run-time error '1004' | Excel Programming |