Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default FIND in only one column

a particular text occurs in many columns.
But I would like to find that only in one coumn for e.g. column A only and
select that cell
(in vba programme)

i tried to use
with columns("a:a")

it does not seem to work

I tried searching in newsgorups and I did not get an appropirate thread.

request for suggestions. thanks regards.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default FIND in only one column

Can you post the actual code you tried and define "does not seem to
work". Did you get an error or was it just not found?

You could try adapting the example from Help.

With Worksheets(1).Range("a:a")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With

Tim


"R.VENKATARAMAN" wrote in message
...
a particular text occurs in many columns.
But I would like to find that only in one coumn for e.g. column A
only and
select that cell
(in vba programme)

i tried to use
with columns("a:a")

it does not seem to work

I tried searching in newsgorups and I did not get an appropirate
thread.

request for suggestions. thanks regards.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default FIND in only one column

with columns(1)

should work, too.

"R.VENKATARAMAN" wrote:

a particular text occurs in many columns.
But I would like to find that only in one coumn for e.g. column A only and
select that cell
(in vba programme)

i tried to use
with columns("a:a")

it does not seem to work

I tried searching in newsgorups and I did not get an appropirate thread.

request for suggestions. thanks regards.


--

Dave Peterson
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
FInd common data in one column then add number in adjacent column JT Excel Worksheet Functions 3 December 18th 09 10:20 PM
find last row value in column when using MATCH to find column Bouce Excel Worksheet Functions 6 February 6th 08 10:16 PM
Find something in column a then find if column B matches criteria Darrell_Sarrasin via OfficeKB.com Excel Discussion (Misc queries) 8 November 28th 07 09:40 PM
Find max value in one column and return the value of corrosponding cell in different column [email protected] Excel Worksheet Functions 5 October 16th 07 12:33 PM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM


All times are GMT +1. The time now is 07:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"