|
-
Sep 15th, 2000, 07:13 AM
#1
Thread Starter
Junior Member
I want to make a search for a number or a string in excel. Is there anyone who can help me? Regards. Clint
-
Sep 15th, 2000, 07:41 AM
#2
Code:
'this code assumes you have declared and created the
'Excel.Application object and called it xl
xl.Cells.Find(What:="TheStringToSearchFor", _
After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Activate
Good luck!
-
Sep 15th, 2000, 07:43 AM
#3
Thread Starter
Junior Member
thanks Joacim
thank you very much. you are great.
-
Sep 15th, 2000, 09:40 AM
#4
Thread Starter
Junior Member
joacim can u?
joacim, could u please show me how to declare variables such as ActiveCell? When I run the code, it gives "variable not defined" error message.
-
Sep 15th, 2000, 10:21 AM
#5
Sorry it should say: xl.ActiveCell
ActiveCell is a property of the Excel.Application object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|