A true basic question....


Posted by Mark on January 24, 2001 12:54 PM

I need to add to a macro that I've already written. I need to take the value of a cell & add "1" to it each time I run the macro, so I can get sequencial numbers (1, 2, 3...).

Can someone help me out??

Thanks in advance,
Mark



Posted by Faster on January 24, 2001 1:37 PM

Sub WebCode()
'set range to cell you want to update
'maybe use a hidden worksheet
Sheets("HiddenSheet").Range("A1") = Sheets("HiddenSheet").Range("A1") + 1
End Sub