Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bony Pony
 
Posts: n/a
Default Pesky little problem with no solution?

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in the
workbook but the scope of the search is limited by this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable to
locate it.

All the best and hoping for a solution,
Robert
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Record a macro while you vary these options, and examine the generated code.

Jerry

Bony Pony wrote:

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in the
workbook but the scope of the search is limited by this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable to
locate it.

All the best and hoping for a solution,
Robert


  #3   Report Post  
Bony Pony
 
Posts: n/a
Default

Hi,
Thanks but like I said, I have done all the obvious
things.
Regards,
Robert
-----Original Message-----
Record a macro while you vary these options, and examine

the generated code.

Jerry

Bony Pony wrote:

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in

the
workbook but the scope of the search is limited by

this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable

to
locate it.

All the best and hoping for a solution,
Robert


.

  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi Robert

there is no VBA setting to change from current sheet to all sheets, you'll
need to cycle through all sheets in the workbook in your code if you want to
replace throughout the whole workbook., e.g.

Sub ReplWholeWB()
Dim Wks As Worksheet
For Each Wks In Worksheets
Wks.Cells.Replace What:="AAAAA", Replacement:="CCCCC", _
searchOrder:=xlByRows, MatchCase:=False
Next Wks
End Sub

---

Hope this helps
Cheers
JulieD



"Bony Pony" wrote in message
...
Hi,
Thanks but like I said, I have done all the obvious
things.
Regards,
Robert
-----Original Message-----
Record a macro while you vary these options, and examine

the generated code.

Jerry

Bony Pony wrote:

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in

the
workbook but the scope of the search is limited by

this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable

to
locate it.

All the best and hoping for a solution,
Robert


.



  #5   Report Post  
Bony Pony
 
Posts: n/a
Default

Hi Julie,
Thank you for your help. Dang!! You'd think that with
all of the useless properties in Excel VB, you think
they'd replicate useful full menu functionality. Ah
well ...

Thanks very much for confirming my own findings though.

Have a great day,
Robert
-----Original Message-----
Hi Robert

there is no VBA setting to change from current sheet to

all sheets, you'll
need to cycle through all sheets in the workbook in your

code if you want to
replace throughout the whole workbook., e.g.

Sub ReplWholeWB()
Dim Wks As Worksheet
For Each Wks In Worksheets
Wks.Cells.Replace What:="AAAAA", Replacement:="CCCCC",

_
searchOrder:=xlByRows, MatchCase:=False
Next Wks
End Sub

---

Hope this helps
Cheers
JulieD



"Bony Pony" wrote

in message
...
Hi,
Thanks but like I said, I have done all the obvious
things.
Regards,
Robert
-----Original Message-----
Record a macro while you vary these options, and

examine
the generated code.

Jerry

Bony Pony wrote:

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a

little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in

the
workbook but the scope of the search is limited by

this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable

to
locate it.

All the best and hoping for a solution,
Robert

.



.



  #6   Report Post  
JulieD
 
Posts: n/a
Default

Hi Robert

i'm not overly surprised, AFAIK the functionality to search the whole
workbook was only introduced to the find / replace screen in ver 2002 - so
maybe in the next version they'll remember to "update" the VBA code.

Cheers
JulieD

"Bony Pony" wrote in message
...
Hi Julie,
Thank you for your help. Dang!! You'd think that with
all of the useless properties in Excel VB, you think
they'd replicate useful full menu functionality. Ah
well ...

Thanks very much for confirming my own findings though.

Have a great day,
Robert
-----Original Message-----
Hi Robert

there is no VBA setting to change from current sheet to

all sheets, you'll
need to cycle through all sheets in the workbook in your

code if you want to
replace throughout the whole workbook., e.g.

Sub ReplWholeWB()
Dim Wks As Worksheet
For Each Wks In Worksheets
Wks.Cells.Replace What:="AAAAA", Replacement:="CCCCC",

_
searchOrder:=xlByRows, MatchCase:=False
Next Wks
End Sub

---

Hope this helps
Cheers
JulieD



"Bony Pony" wrote

in message
...
Hi,
Thanks but like I said, I have done all the obvious
things.
Regards,
Robert
-----Original Message-----
Record a macro while you vary these options, and

examine
the generated code.

Jerry

Bony Pony wrote:

Hi all,
I posted this before Christmas but didn't receive any
answers so I thought I'd try again.

In the EDIT, REPLACE ... / OPTIONS screen, is a

little
dropdown box that tells EXCEL to search the sheet or
workbook.

I run a macro that does a find / replace of text in
the
workbook but the scope of the search is limited by
this
dropdown. In other words, I cannot seem to over rule
this manual dropdown entry via code. Is there a VB
property that is associated with this drop down box?
I've looked really hard for this and have been unable
to
locate it.

All the best and hoping for a solution,
Robert

.



.



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
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Problem with date base units for x axis Peter Carr Charts and Charting in Excel 1 December 15th 04 09:11 AM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM
Custom Type Charts Problem Reetesh B. Chhatpar Excel Worksheet Functions 0 November 23rd 04 10:55 AM


All times are GMT +1. The time now is 10:12 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"