Dear all,

I would like to open the find dialog in Excel with VBA from word.
How can I do that?
At this moment I do this with Sendkeys, but that only works with the same
languages.
Can someone help me please?

Re: Opening Find dialog in Excel by Helmut

Helmut
Tue Mar 13 07:00:29 CDT 2007

Hi DeCock,

like this:

Sub Test55()
' early binding assumed
' excel already running
Dim oExc As Excel.Application
Set oExc = GetObject(, "excel.application")
oExc.Visible = True
Dim oDlg As Excel.Dialog
Set oDlg = oExc.Dialogs(xlDialogFormulaFind) ' !!!
oDlg.Show
oExc.Visible = True
' ...
End Sub

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Re: Opening Find dialog in Excel by DeCock

DeCock
Tue Mar 20 09:38:20 CDT 2007

Thank you Helmut,
This works great.
Cheers

"Helmut Weber" wrote:

> Hi DeCock,
>
> like this:
>
> Sub Test55()
> ' early binding assumed
> ' excel already running
> Dim oExc As Excel.Application
> Set oExc = GetObject(, "excel.application")
> oExc.Visible = True
> Dim oDlg As Excel.Dialog
> Set oDlg = oExc.Dialogs(xlDialogFormulaFind) ' !!!
> oDlg.Show
> oExc.Visible = True
> ' ...
> End Sub
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>