Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sep 27, 1:16 pm, JE McGimpsey wrote:
One way: Dim rFound As Range Set rFound = Columns(1).Find("mytext") If rFound Is Nothing Then MsgBox "Didn't find 'mytext'" Else 'your macro stuff here End if In article . com, wrote: At one point within a macro I'm searching a column for a specific text using the "Find" command. If the search comes up empty I want to display a message to the user and end the macro. How do I do this? Great stuff.....worked perfectly. Many thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display "macro-free workbooks - VB project message" on closing Exc | Excel Discussion (Misc queries) | |||
How to have a macro simply issue the "find" command or "control f: | Excel Programming | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Error message "Not enough system resources to display completely." | Excel Discussion (Misc queries) | |||
FileCopy Command Giving "Subscript Out of Range" Error Message | Excel Programming |