LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Results of a 'find'


Hi there

Getting a bit rusty with VBA - I'm sure I would have solved this myself
a while back!

I am testing some workbooks for specific text strings. If the strings
exist its an error and the macro should stop and report. If there are
no strings thats fine - move to the next test.

Can someone give me a pointer as to how to construct the error handling
in this instance?



I'm looking to wrap something around this:

Sheets.Select
Cells.Find(What:="not a valid", After:=ActiveCell,
LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
_
MatchCase:=False, SearchFormat:=False).Activate
On Error GoTo ErrorTrap1

Any suggestions appreciated...
Neil


--
frango_head
------------------------------------------------------------------------
frango_head's Profile: http://www.excelforum.com/member.php...o&userid=33355
View this thread: http://www.excelforum.com/showthread...hreadid=531864

 
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
Find and replace results can the appearance of find be different? LLS at DPW Excel Discussion (Misc queries) 2 October 26th 09 11:16 PM
fIND GIVES NO RESULTS John Excel Discussion (Misc queries) 2 December 21st 06 09:31 PM
find multiple results Larry Banach Excel Discussion (Misc queries) 9 November 24th 06 07:15 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
Find all results dialog box Judy F Excel Discussion (Misc queries) 5 February 1st 06 11:07 PM


All times are GMT +1. The time now is 02:41 PM.

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

About Us

"It's about Microsoft Excel"