Archive of Mr Excel Message Board


Back to Excel VBA archive index
Back to archive home

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


Check out our Excel VBA Resources

Re: A true basic question....

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

This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.