using a cell value to control a counter inside a macro and displaying macro value

  • Thread starter Thread starter ocset
  • Start date Start date
O

ocset

hi,
I want to use a cell in a worksheet to control a loop counter

cell A1 in worksheet `Test `= x
I also want to show the value of x as it increase / decrease on a
worksheet ( i beleive I use print but not quite sure how)

how do i display the cell link(my intial value of x) inside my macro

how do I show link to display the decrease or increase of the value of x
inside a worksheet
any assistance appreciated
 
Use the cells method in your macro to set the value of the loop counter.

In the following example, the statement returns the value in Cell A3

loop_counter=Cells(3,1)
 
Use the cells method in your macro to set the value of the loop counter.

In the following example, the statement returns the value in Cell A3

loop_counter=Cells(3,1)
 

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