Row, Column

  • Thread starter Thread starter Abdul
  • Start date Start date
A

Abdul

Hi All,

How cud I get the current row column1 column 3 etc..

i am using a find command and when the data is found i
want to get column1 and column3 from that row.

for eg: if the data is in X10 then i want to reference
a10 and C10 ..

something like range(row,1) or cell(row, 3) etc..

thanks

Abdul
 
Hi
try something like
dim rng as range
set rng=range("X10")
'replace with your find command

msgbox cells(rng.row,1).value
 
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 24 Then
MyRow = Target.Row
MsgBox "The Value of Col1 is " & Cells(MyRow, 1).Value
MsgBox "The Value of Col3 is " & Cells(MyRow, 3).Value
End If
End Sub

Does this help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top