Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 2
Default xlDialogFormulaFind Dialog Box

I wrote the following VBA code to Select all the sheets in
the workbook and then pop up the built in Find dialog box
so all the sheets would be searched. The dialog box pops
up but reports no data was not found even though the data
is in multiple sheets. It appears since the Sub / code is
still running and the sub hasn't gotten to the end Sub yet
it prevents the Find dialog from working properly. How
would I end the macro imenditily after the dialog pops up?
So control goes to the Find dialog. Thanks In Advance!

Code is Below:
Sub SearhAllSheets()
i = Sheets.Count
For Each ws In Worksheets
If ws.Name = Sheets(i).Name Then
Exit For
End If
ws.Select (False)
Next ws
Application.Dialogs(xlDialogFormulaFind).Show
End Sub

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
Using dialog box B~O~B Excel Worksheet Functions 2 June 30th 08 06:01 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
dialog box alm09 Excel Discussion (Misc queries) 1 March 31st 06 05:50 PM
Dialog Box Aussie Excel Discussion (Misc queries) 1 March 7th 05 03:56 PM
Pop up dialog box Lloyd Gordon Excel Programming 0 September 19th 03 07:43 PM


All times are GMT +1. The time now is 12:55 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"