C cpayneHTE Mar 18, 2008 #1 is there any way to default to the "workbook" setting instead of "sheet" when using the find function?
is there any way to default to the "workbook" setting instead of "sheet" when using the find function?
D Dave Peterson Mar 18, 2008 #2 I don't think so. is there any way to default to the "workbook" setting instead of "sheet" when using the find function? Click to expand...
I don't think so. is there any way to default to the "workbook" setting instead of "sheet" when using the find function? Click to expand...
D Dave Peterson Mar 18, 2008 #4 That setting can't be changed via "normal" excel code. Maybe using Sendkeys????
B Bob I Mar 18, 2008 #5 Looks like the ticket. Dave said: That setting can't be changed via "normal" excel code. Maybe using Sendkeys???? Click to expand...
Looks like the ticket. Dave said: That setting can't be changed via "normal" excel code. Maybe using Sendkeys???? Click to expand...
D Dave Peterson Mar 18, 2008 #6 Sendkeys is something I wouldn't use if I were sharing the macro with others. Too many things can go wrong. If I have to use it for my own personal macros, then I won't be upset when one of those many things go wrong.
Sendkeys is something I wouldn't use if I were sharing the macro with others. Too many things can go wrong. If I have to use it for my own personal macros, then I won't be upset when one of those many things go wrong.
P Peter T Mar 19, 2008 #7 Not sure I understand the objective but if it's to reset the options in the Find dialog to their default settings this macro should do it Sub ResetFind() Dim rng As Range On Error Resume Next Set rng = Cells.Find(What:="", _ LookIn:=xlFormulas, _ SearchOrder:=xlRows, _ LookAt:=xlPart, _ MatchCase:=False) End Sub Regards, Peter T
Not sure I understand the objective but if it's to reset the options in the Find dialog to their default settings this macro should do it Sub ResetFind() Dim rng As Range On Error Resume Next Set rng = Cells.Find(What:="", _ LookIn:=xlFormulas, _ SearchOrder:=xlRows, _ LookAt:=xlPart, _ MatchCase:=False) End Sub Regards, Peter T
D Dave Peterson Mar 19, 2008 #8 In xl2002+ (I think), there's an additional "within" setting under the Options button to look in the entire workbook. That setting isn't exposed through VBA.
In xl2002+ (I think), there's an additional "within" setting under the Options button to look in the entire workbook. That setting isn't exposed through VBA.
P Peter T Mar 19, 2008 #10 Ah ha - that also explains why I didn't understand the objective ! Regards, Peter T