If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel Automation - No Find Dialog

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-05, 10:40
wey97 wey97 is offline
Registered User
 
Join Date: Mar 2003
Posts: 130
Question Excel Automation - No Find Dialog

I can use the following code in Word to show the Edit->Find dialog box:
Code:
Dim wordApp As New Word.Application
With wordApp
	.Visible = True
	.Documents.Open strFile
	.Dialogs(wdDialogEditFind).Show
	.ActiveDocument.Close
	.Quit
Wend
Set wordApp = Nothing
There is no xlDialogEditFind index though. How can I search with the Excel Edit->Find dialog?
Reply With Quote
  #2 (permalink)  
Old 03-02-05, 11:55
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Application.Dialogs(xlDialogFormulaFind).Show

but i cant get it to work very well why dont you build your own,

i have been looking at using the windows api but the find dialog seems not to work to well as it is modleless
Reply With Quote
  #3 (permalink)  
Old 03-02-05, 12:13
wey97 wey97 is offline
Registered User
 
Join Date: Mar 2003
Posts: 130
Yeah the problem with xlDialogFormulaFind is it is not the same as the Edit->Find Box as if you press Ctrl->F.

Theres a workaround here: http://www.excelbanter.com/q-t_13199...alog-box-.html

I found the easiest thing (although ugly) is to SendKeys "^f"

Last edited by wey97; 03-02-05 at 12:24.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On