Built-In Function use.

Skyybot

Well-known Member
Joined
Feb 18, 2023
Messages
1,094
Office Version
  1. 365
Platform
  1. Windows
Is there any way to Call the Built-In Function that gets called when you hit the "Find All" button of the "Find and Replace" dialog box?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Are you asking about whether this can be called from VBA (no mention of VBA in your post, so it's not clear)? The answer is no, you cannot invoke that dialog from VBA. You would have to write your own custom code to do the same thing.
 
Upvote 0
Solution
Is there any way to Call the Built-In Function that gets called when you hit the "Find All" button of the "Find and Replace" dialog box?
You mean like this?
Code:
Application.Dialogs(130).Show
 
Upvote 0
Is this what you are after?
VBA Code:
SendKeys ("%i")
DoEvents
SendKeys ("%i")
Application.CommandBars.FindControl(ID:=1849).Execute
 
Upvote 0
Is this what you are after?
VBA Code:
SendKeys ("%i")
DoEvents
SendKeys ("%i")
Application.CommandBars.FindControl(ID:=1849).Execute
This is great. What purpose does sending ALT+i serve? It seems to work without it.
 
Upvote 0

Forum statistics

Threads
1,223,627
Messages
6,173,424
Members
452,515
Latest member
Alicedonald9

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