Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code works when I call it from a button on the actual sheet that
has to be querried: Cells.Find(What:="search something", _ After:=ActiveCell, _ LookIn:=xlValues, _ LookAt:=xlPart, _ SearchOrder:=xlByColumns, _ SearchDirection:=xlNext, MatchCase:=False).Activate This code doesn't work and produces an error "1004 - Active method of Range class failed" when triggered from another sheet than the one that has to be querried: Worksheets("Sheet1").Range("Database").Cells.Find( What:="search something", _ After:=ActiveCell, _ LookIn:=xlValues, _ LookAt:=xlPart, _ SearchOrder:=xlByColumns, _ SearchDirection:=xlNext, MatchCase:=False).Activate It must be because of "Worksheets("Sheet1").Range("Database")."... but what is wrong??? Thanks for any help advice... Kinne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code fails when sheet is protected | Excel Discussion (Misc queries) | |||
Foreign Exchange | Excel Discussion (Misc queries) | |||
excel97 vs excel2000 (Find instruction) | New Users to Excel | |||
excel97 vs excel2000 (Find instruction) | Excel Worksheet Functions | |||
VBa, Password protected sheet fails to get unprotected with the same password | Excel Programming |