ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find the value of a cell (https://www.excelbanter.com/excel-programming/360435-find-value-cell.html)

afmullane[_6_]

Find the value of a cell
 

Hi guys,

I want to be able to implement an auto number function. So i'm trying
to read in the value of the previous row of the column. I'm using:

Cells(target.row, 2)

to find to find the row but i want to be able to read the value of the
number in the cell so that i can add 1 to the number.

Any help would be greatly appreciated,

Aidan


--
afmullane
------------------------------------------------------------------------
afmullane's Profile: http://www.excelforum.com/member.php...o&userid=33567
View this thread: http://www.excelforum.com/showthread...hreadid=538420


Norman Jones

Find the value of a cell
 
Hi Aidan,

Try something like:

rCell.Value = rCell.Offset(-1,0).Value


---
Regards,
Norman



"afmullane" wrote
in message ...

Hi guys,

I want to be able to implement an auto number function. So i'm trying
to read in the value of the previous row of the column. I'm using:

Cells(target.row, 2)

to find to find the row but i want to be able to read the value of the
number in the cell so that i can add 1 to the number.

Any help would be greatly appreciated,

Aidan


--
afmullane
------------------------------------------------------------------------
afmullane's Profile:
http://www.excelforum.com/member.php...o&userid=33567
View this thread: http://www.excelforum.com/showthread...hreadid=538420





All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com