auto numbering

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

Guest

I have made a purchase order template in excel, I want a new purchase order
number to appear each time the sheet is opened automaticlly, but I am having
trouble doing this. HELP IS NEEDED URGENT
 
You could use something simple like:

Sub Workbook_Open()
With Sheets("Sheet1").Range("A1")
.Value = .Value + 1
End With
ActiveWorkbook.Save
End Sub

---
Press ALT+F11, double-click on "ThisWorkbook" module, and
paste in the code. Save.

HTH
Jason
Atlanta, GA
 

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

Back
Top