#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Row, Column

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Row, Column

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

msgbox cells(rng.row,1).value

"Abdul" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Row, Column

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?

"Abdul" wrote in message
...
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



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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
formula : =(column A)+(column B)-(column C). Why won't it work? Kristin Drover Excel Discussion (Misc queries) 3 October 18th 06 08:48 PM


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