How to get Find dialogbox through VBA macro in Excel2007
Actual issue is that none of these lines work with Auto_open macro, I have
tested both the methods as below but none seems to work with autoopen
Following code is on the this workbook section and does not work.
Private Sub Workbook_Open()
Application.CommandBars.ExecuteMso ("FindDialogExcel")
Application.CommandBars.FindControl(ID:=1849).Exec ute
End Sub
Following code is in the module1 and does not work
Sub Auto_open()
Application.CommandBars.FindControl(ID:=1849).Exec ute
Application.CommandBars.ExecuteMso ("FindDialogExcel")
End Sub
Is there a way that I can get this as auto open macro with options expanded
with within workbook selected. Pls do let me know about the same if possible
--
Yogesh Gupta
"Dave Peterson" wrote:
All 3 dialogs look the same to me (Ctrl-f and the 2 shown with your code).
Maybe you have to click the Options button to see them the same way????
Or maybe you're viewing a different Find dialog????
What's the difference that you see?
Yogesh Gupta wrote:
I am using Excel2007
I am looking for a VBA code to show excel find dialogbox that you get
through Ctrl+F.
I am not able to get the same dailogbox through excel VBA macro.
dialog box through following code is not similar to what you get with Ctrl+F
Application.Dialogs(xlDialogFormulaFind).Show
Another one which gives this dailog box does not work with auto open macro
Application.CommandBars.FindControl(ID:=1849).Exec ute
--
Yogesh Gupta
--
Dave Peterson
|