I'd like to create a button that makes the "Find and Replace" popup come up when pressed. Does anyone know how to do this?
(Ctrl + F is the shortcut for it)
I'd like to create a button that makes the "Find and Replace" popup come up when pressed. Does anyone know how to do this?
(Ctrl + F is the shortcut for it)
Assign this macro to a button.
![]()
Sub Find_and_Replace_Show() Application.Dialogs(xlDialogFormulaFind).Show End Sub
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
I would avoid buttons where ever possible, rather use the change event for the sheet , in ths case for cell A1.
Click on cell A1
![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$1" Then SendKeys "^f" Target.Offset(0, 1).Select End If End Sub
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Once you have seen enough workbooks with deleted code, copied sheets, references to other workbooks, etc. you'll see why.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks