If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > search only one column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-06, 11:43
VBALordCorp VBALordCorp is offline
Registered User
 
Join Date: Jul 2004
Posts: 34
Arrow search only one column

I need to search only one column in my code. before for my search I was useing:

Cells.find(.....)

so i tried adapting that by first using

select cells ("A":"A")
cells.find(...)

but that didnt work so I went to

Cells([],[A]).find(...)

and nothing seems to be working. Any help?
Reply With Quote
  #2 (permalink)  
Old 04-25-06, 06:58
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

How about

Columns("F:F").Select
Selection.Find(.. )

or

Columns("F:F").Find(.. )

Does that help !?

Hint: Try using the Macro Recorder !!

MTB
Reply With Quote
  #3 (permalink)  
Old 04-25-06, 09:27
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
And you shouldn't need to "select" to do what you want.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On