Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default hope someonde is smart enough?!?!

If you are confident that there are no other errors in
your code, then the easiest way is to add the following
lines at the top and bottom of your code:

On error resume next

... your code here...

On error goto 0

What this does is force VBA to advance to and execute the
next line of code any time an error is generated, so it
will circumvent the problem with invalid "Find"s. The line
at the end simply re-enables errors.
As I said at the start, make sure the rest of the code the
Find statements trigger works the way you want before
adding this or all kinds of strange things might happen
and you wont know why!!

Cheers, Pete
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation I Hope MarsBars Excel Worksheet Functions 1 April 21st 09 09:22 AM
Simple one I hope???? Kev Excel Discussion (Misc queries) 2 May 10th 07 02:06 PM
Hope someone can help me Jay Blatherwick Excel Discussion (Misc queries) 1 June 15th 06 06:03 PM
Hope someone here can help me AlienBeans Excel Discussion (Misc queries) 9 March 17th 06 12:37 AM
An easy one i hope [email protected] Excel Discussion (Misc queries) 1 December 23rd 05 02:05 PM


All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"