PC Review


Reply
Thread Tools Rate Thread

Bring up the "find and replace" window

 
 
excel@shoenfeltconsulting.com
Guest
Posts: n/a
 
      26th Jul 2007
When the workbook is opened, I'd like to be prompted to search and
replace. I know that the "macro" needs to be saved as a
"Workbook_open" subroutine. But I don't know how to get it then
prompt for the string to be searched for. The macro recorder records
nothing when I hit Ctrl+F. What's the code for bringing up the Search
and replace window?

Thanks,

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      26th Jul 2007
does this help?

Application.Dialogs(xlDialogFormulaFind).Show


--


Gary


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When the workbook is opened, I'd like to be prompted to search and
> replace. I know that the "macro" needs to be saved as a
> "Workbook_open" subroutine. But I don't know how to get it then
> prompt for the string to be searched for. The macro recorder records
> nothing when I hit Ctrl+F. What's the code for bringing up the Search
> and replace window?
>
> Thanks,
>



 
Reply With Quote
 
excel@shoenfeltconsulting.com
Guest
Posts: n/a
 
      30th Jul 2007
On Jul 26, 3:58 pm, "Gary Keramidas" <GKeramidasATmsn.com> wrote:
> does this help?
>
> Application.Dialogs(xlDialogFormulaFind).Show
>
> --
>
> Gary
>
> <ex...@shoenfeltconsulting.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > When the workbook is opened, I'd like to be prompted to search and
> > replace. I know that the "macro" needs to be saved as a
> > "Workbook_open" subroutine. But I don't know how to get it then
> > prompt for the string to be searched for. The macro recorder records
> > nothing when I hit Ctrl+F. What's the code for bringing up the Search
> > and replace window?

>
> > Thanks,- Hide quoted text -

>
> - Show quoted text -


Thanks Gary -- yes that worked.
1) How would I go about figuring this out myself -- other than asking
this newsgroup?
2) I'm trying to limit the scope of the search to column H. so, I did
this:
Columns("H:H").Select
Application.Dialogs(xlDialogFormulaFind).Show

But it searches in the whole sheet. How can I limit the search to
just column H?

Thanks,

 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      30th Jul 2007
i'm guessing you'll have to make your own. create a form with 2 textboxes. one
with what you want to search for and one with what you want to replace it with.

then search vba help for the find method, when you find what you're looking for
in textbox1, replace it with textbox2.



--


Gary


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Jul 26, 3:58 pm, "Gary Keramidas" <GKeramidasATmsn.com> wrote:
>> does this help?
>>
>> Application.Dialogs(xlDialogFormulaFind).Show
>>
>> --
>>
>> Gary
>>
>> <ex...@shoenfeltconsulting.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > When the workbook is opened, I'd like to be prompted to search and
>> > replace. I know that the "macro" needs to be saved as a
>> > "Workbook_open" subroutine. But I don't know how to get it then
>> > prompt for the string to be searched for. The macro recorder records
>> > nothing when I hit Ctrl+F. What's the code for bringing up the Search
>> > and replace window?

>>
>> > Thanks,- Hide quoted text -

>>
>> - Show quoted text -

>
> Thanks Gary -- yes that worked.
> 1) How would I go about figuring this out myself -- other than asking
> this newsgroup?
> 2) I'm trying to limit the scope of the search to column H. so, I did
> this:
> Columns("H:H").Select
> Application.Dialogs(xlDialogFormulaFind).Show
>
> But it searches in the whole sheet. How can I limit the search to
> just column H?
>
> Thanks,
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Find" a wildcard as a place marker and "replace" with original va Eric Microsoft Excel Misc 1 27th Jan 2009 06:00 PM
Replace dialog should put focus on "Find What" not "Replace With" =?Utf-8?B?TWljaGFlbCBXaWxsaWFtcw==?= Microsoft Excel Misc 0 24th May 2006 12:45 PM
"replace" and "Find" function in Microsoft Office Word 2003 =?Utf-8?B?bWxlaA==?= Microsoft Access 1 10th May 2006 11:12 PM
"find" & "replace" functions no longer working in FP2002?? FrontPageCornfuzzled Microsoft Frontpage 4 19th Feb 2005 12:48 PM
Need to "find" an entire word and "replace" only part of it =?Utf-8?B?VmljdG9yRA==?= Microsoft Word Document Management 4 19th Jun 2004 01:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 PM.