Excel visual basic

G

Guest

I want to write a macro that will write values to cells on a sequence given
by a counter. For example counter = 1 then writes a certain value to cell A1,
then if counter goes to 2, i want the result to be posted on cell A2 and so
on so forth, so when this macro is run, it will do some calculations and post
for example 20 results in 20 rows on the same column. Could be easy to do
using the R[]C[] notation but I dont know how to do that... can anyone help?
 
F

Frank Kabel

Hi
cells(counter,1).value="certain value"

--
Regards
Frank Kabel
Frankfurt, Germany

pacheco said:
I want to write a macro that will write values to cells on a sequence given
by a counter. For example counter = 1 then writes a certain value to cell A1,
then if counter goes to 2, i want the result to be posted on cell A2 and so
on so forth, so when this macro is run, it will do some calculations and post
for example 20 results in 20 rows on the same column. Could be easy to do
using the R[]C[] notation but I dont know how to do that... can
anyone help?
 

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

Top