View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sridhar Pentlavalli via OfficeKB.com Sridhar Pentlavalli via OfficeKB.com is offline
external usenet poster
 
Posts: 11
Default Changed cell row number...


Hi

I have a requirement in which I am getting some problem. Lets say I have four columns in a sheet. If first three columns are entered with some values, I need to compute some thing and put it in fourth column. For that purpose I am using "Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)" function. Here the problem I am facing is, in this function, how to get the row number in which the data has been changed?

If I am not clear, let me explain clearly. If data in cells(3,1), cells(3,2) and cells(3,3) is changed, then I need to compute some thing and put it in cells(3,4). Here how to trap the row number as 3 in side the "Workbook_SheetChange" function.

Thanks in advance

--
Message posted via http://www.officekb.com