Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default "Find All" Function in a UserForm?

Is it possible to include the Excel "Find All" function in my userform?

Example, the user would type something into a text box, and then click a
"Search" button. The Userform would automatically trigger the Excel "Find
All" function to have it search every worksheet in the workbook. Then, the
UserForm would close, the spreadsheet would become visible, with the "Find
All" dialog box and search results displayed.

Any help is GREATLY appreciated! Thanks

-Allen Geddes
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default "Find All" Function in a UserForm?

You can't get to all the options in the Edit|find dialog via VBA.

But you can get to some:
text, in_num, at_num, by_num, dir_num, match_case, match_byte

Maybe you could just show as much as you can and tell the user to do a find all.

Dim WhatToFind As String
WhatToFind = "asdf"
Application.Dialogs(xlDialogFormulaFind).Show arg1:=WhatToFind

=======
Another option (I wouldn't use it) is to try using Sendkeys to choose the
options you want.

Allen Geddes wrote:

Is it possible to include the Excel "Find All" function in my userform?

Example, the user would type something into a text box, and then click a
"Search" button. The Userform would automatically trigger the Excel "Find
All" function to have it search every worksheet in the workbook. Then, the
UserForm would close, the spreadsheet would become visible, with the "Find
All" dialog box and search results displayed.

Any help is GREATLY appreciated! Thanks

-Allen Geddes


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
"Find" a wildcard as a place marker and "replace" with original va Eric Excel Discussion (Misc queries) 1 January 27th 09 06:00 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Please add a "sheet" function like "row" and "column" functions Spreadsheet Monkey Excel Programming 2 November 8th 05 04:08 PM


All times are GMT +1. The time now is 12:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"