formula for auto increase invoice #

W

wendolyn

I have finished an invoice program for a friend, however, I can't figure out
if there is a formula to have it automatically increase the invoice number
with just the touch of a button. Like in QuickBooks you would use + or -.
Please help. Thanks
 
J

Jason Morin

If the invoice # were in A1, right-click the worksheet
tab, View Code, and place in the following:

Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
With Application
If .Intersect(Range("A1"), Target) _
Is Nothing Then Exit Sub
.ScreenUpdating = False
With Target
.Value = .Value + 1
End With
.ScreenUpdating = True
End With
End Sub
////////////

Make sure you've entered a value first before inserting
the code.

HTH
Jason
Atlanta, GA
 
W

Wendolyn

At the risk of sounding completely stupid...I'm lost. Any way to simplify
all of this? Thanks.
 

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