Incrementing Cell Reference

cntrlmn

New Member
Joined
Jun 21, 2011
Messages
3
I have a spreadsheet that I'm using to capture serial data from a weigh scale using a opc server with dde. My scale value is updated in A1 when the enter button is pressed on the scale and the after every update I have created a counter that increments the number of updated values I have received. All I need is a way to increment the cell reference so that the updated value is placed starting in cell B1 then after the next update cell B2 and so on. I have all of the logic working except I cannot determine what function or method to use to calculate the cell reference. I plan on using the incremented to place the value in example if weight is 100.2 and update counter is 18 then 100.2 is placed in B18. I'm using a vb macro. I just need the bit of code for the cell reference. Its probally easy I'm just not very familiar with excel.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Is it?

Code:
Range("B" & Rows.Count).End(xlUp).Offset(1).Value = Range("A1").Value
 
Upvote 0
Thanks so much, I've been working on the solution for this for over 2 days and in 30 seconds you have solved it for me.
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,225
Members
452,896
Latest member
IGT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top