How do I add an auto number to a worksheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I add an auto number to a work sheet
or a button to generate a number which increases by 1 each time.
Office 2000
 
You could create a macro and assign it to a button from the Forms toolbar
(placed on that worksheet).

Option Explicit
sub testme01()
with activesheet
if isnumeric(.range("a1").value) then
.range("a1").value = .range("a1").value + 1
end if
end with
end sub
 
Back
Top