Library code snippets

Increment Cell Value

This extremely simple macro increments the value in a cell. You could use this for unique id's on invoices, delivery notes, etc...

Sub Increment()
   ' change A1 to the cell you wish to increment
   Range("A1").Value = Range("A1").Value + 1
End Sub

Comments

  1. 01 Jan 1999 at 00:00

    This thread is for discussions of Increment Cell Value.

Leave a comment

Sign in or Join us (it's free).

Neil Derek

We'd love to hear what you think! Submit ideas or give us feedback