Run-time error ‘91’:
From: GCF (GCF.1dpt7b_at_excelforum-nospam.com)
Date: 10/06/04
- Next message: Kevin: "Re: Microsoft Jet workspace"
- Previous message: peter: "# of Spaces macro"
- Next in thread: kkknie: "Re: Run-time error ‘91’:"
- Reply: kkknie: "Re: Run-time error ‘91’:"
- Reply: Tom Ogilvy: "Re: Run-time error '91':"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 6 Oct 2004 12:13:13 -0500
I made this code as simple as possible to get to the bottom of the
problem. Now instead of failing some of the tine, it dies all the
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 Sub
-- GCF ------------------------------------------------------------------------ GCF's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=4124 View this thread: http://www.excelforum.com/showthread.php?threadid=266948
- Next message: Kevin: "Re: Microsoft Jet workspace"
- Previous message: peter: "# of Spaces macro"
- Next in thread: kkknie: "Re: Run-time error ‘91’:"
- Reply: kkknie: "Re: Run-time error ‘91’:"
- Reply: Tom Ogilvy: "Re: Run-time error '91':"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|