Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find/search function/example request.

Does anyone have an example of finding information in excel and reading the
information into VB or VBA (preferably VB)?

Thanks,
Aaron


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find/search function/example request.

here is the help example for using the find method of the range object in
Excel:

With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Interior.Pattern = xlPatternGray50
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End WithFind has many more arguments. You can see and example of them by
turning on the macro recorder (tools=Macros=record a new macro) and then
doing a find manual (Edit=Find)-- Regards,Tom Ogilvy"Aaron" <NONE wrote in
message ...
Does anyone have an example of finding information in excel and reading

the
information into VB or VBA (preferably VB)?

Thanks,
Aaron




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
need a search/find/lookup function Jenn Excel Worksheet Functions 4 February 6th 10 03:40 AM
Search / Find Function Harry C. Excel Worksheet Functions 6 June 16th 09 05:40 PM
Search request GregNga Excel Discussion (Misc queries) 1 February 18th 09 01:54 AM
Find / Search Function Andrew Excel Discussion (Misc queries) 1 October 12th 08 08:25 PM
Find & Search Function drvortex Excel Worksheet Functions 6 June 16th 06 08:34 PM


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