F
Fred Smith
I have the following code in a For loop which goes through every file in a
folder:
On Error Goto NoData
Columns("A:A").Select
Cells.Find(What:="06/30/2003").Activate
I'm having trouble getting the On Error to work. The first file where the find
fails works fine -- it goes to the NoData statement and continues on. With the
second file, I get an error 91: Object variable or With block variable not set.
How do I get the On Error statement to take effect with every file, not just the
first?
folder:
On Error Goto NoData
Columns("A:A").Select
Cells.Find(What:="06/30/2003").Activate
I'm having trouble getting the On Error to work. The first file where the find
fails works fine -- it goes to the NoData statement and continues on. With the
second file, I get an error 91: Object variable or With block variable not set.
How do I get the On Error statement to take effect with every file, not just the
first?