Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Find/Find ALL

Does any one, please, know how to call the method that brings up the "Find
and Replace" form under the menu Edit/Find/Find ALL? (Record macro didnt help
me)

Thank you so much and Happy New Year!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Find/Find ALL

Hi Dan,

To the best of my knowledge you cannot use Find all in VBA. You have to use
Find followed by Find Next in a loop. Help has an example of find and find
next if you search for 'Find Next'. However, use all of the find parameters
that you get when recording a macro with find. Reason is that Excel remembers
the parameters last used whether in the interactive mode or in VBA so for
good programming reset them in the code.

Not sure just what you want to do when you have found all occurrences so if
you still need additional help then if you post a bit more info then I am
sure you will get the help you need.

--
Regards,

OssieMac


"Dan Tabla" wrote:

Does any one, please, know how to call the method that brings up the "Find
and Replace" form under the menu Edit/Find/Find ALL? (Record macro didnt help
me)

Thank you so much and Happy New Year!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find/Find ALL


Try dialogs either the find or replace below. Sues arg1,arg2,arg3 ...
to pass the parameters to the dialog. The parameter lists is shown
below along with the code.

'Parameter list for Find
'xlDialogFormulaFind Text, in_num, at_num, by_num, dir_num,
'match_case, 'match_byte

'Parameter list for replace
'xlDialogFormulaReplace find_text, replace_text, look_at, look_by,
active_cell,
'match_case, match_byte

Set FindDialog = Application.Dialogs(xlDialogFormulaFind)

With FindDialog
.Show arg1:="abc"
End With


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=166386

Microsoft Office Help

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Find/Find ALL



"OssieMac" wrote:

Hi Dan,

To the best of my knowledge you cannot use Find all in VBA. You have to use
Find followed by Find Next in a loop. Help has an example of find and find
next if you search for 'Find Next'. However, use all of the find parameters
that you get when recording a macro with find. Reason is that Excel remembers
the parameters last used whether in the interactive mode or in VBA so for
good programming reset them in the code.

Not sure just what you want to do when you have found all occurrences so if
you still need additional help then if you post a bit more info then I am
sure you will get the help you need.

--
Regards,

OssieMac


"Dan Tabla" wrote:

Does any one, please, know how to call the method that brings up the "Find
and Replace" form under the menu Edit/Find/Find ALL? (Record macro didnt help
me)

Thank you so much and Happy New Year!

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
Find rows with a common item and find or highlight difference jonnybrovo815 Excel Programming 2 February 27th 08 12:56 AM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
find and delete duplicate entries in two columns or find and prin. campare 2 columns of numbers-find unique Excel Programming 1 November 24th 04 04:09 PM
find and delete text, find a 10-digit number and put it in a textbox Paul Excel Programming 3 November 16th 04 04:21 PM


All times are GMT +1. The time now is 10:25 PM.

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

About Us

"It's about Microsoft Excel"