Limit Application.Dialogs(xlDialogFormulaFind).show to just one Worksheet ...

adambc

Active Member
Joined
Jan 13, 2020
Messages
406
Office Version
  1. 365
Platform
  1. Windows
Have found various posts on this subject but none of them work!

I have the following line of VBA code ...

VBA Code:
Application.Dialogs(xlDialogFormulaFind).show "", 2, 2, 1

... but I want it to only look at one (of 5) Worksheet ("All Data") ie not move onto the next Worksheet etc etc

Is there a way to do this?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Why do you need to use the dialog at all?
 
Upvote 0
You could simply use an inputbox for the text to find, then use the range.find method to look in a specific range on the sheet in question (or the whole used range of the sheet).
 
Upvote 0
You could simply use an inputbox for the text to find, then use the range.find method to look in a specific range on the sheet in question (or the whole used range of the sheet).
OK but how do I emulate “Find Next” which is key?
 
Upvote 0
What are you actually trying to do? Allow the user to interact with the dialog?
 
Upvote 0
What are you actually trying to do? Allow the user to interact with the dialog?
Yes, but only for the active Worksheet ..,

But it’s made me think about what they actually want to do so hold fire (unless there’s an easy way to restrict the Find to the active WS?) while I get the users to define what they want to do?

Thanks as always …
 
Upvote 0

Forum statistics

Threads
1,221,691
Messages
6,161,322
Members
451,696
Latest member
Senthil Murugan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top