Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default how to use find() to search in the selected columns?

how to set the parameters like LookIn, Lookat or any others?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default how to use find() to search in the selected columns?

Try something like the following:

Dim FoundCell As Range
Set FoundCell = Selection.Find(what:="something",
LookIn:=xlValues, _
lookat:=xlWhole, MatchCase:=False)
If FoundCell Is Nothing Then
' not found
Else
' found
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"lvcha.gouqizi" wrote in message
oups.com...
how to set the parameters like LookIn, Lookat or any others?



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
Multiple cells or columns are selected instead of selected cell or Mikey Excel Discussion (Misc queries) 1 April 29th 09 09:48 PM
save search settings having all tabs selected-or entire workbook Kens Excel Worksheet Functions 0 February 28th 07 09:36 PM
Help with a formula for concatenate and search/find with 3 columns Mel Excel Worksheet Functions 4 March 7th 05 09:12 PM
Search by rows and then go to selected row...in a frame? Dave Linsalata Excel Programming 2 January 31st 05 02:37 PM
HELP,how to show search result according to specifed criteria and selected fields Kortrijker Excel Programming 2 February 16th 04 02:31 PM


All times are GMT +1. The time now is 06:48 AM.

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"