Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DABroussard
 
Posts: n/a
Default Purchase Order Template Numbering

Hi, I would like to print out blank purchase orders - with the numbers
automatically generating - is this possible with this macro and if so how do
I make that happen?

Thanks so much! Your post was very helpful.


Denise Broussard


"Geoff Lilley" wrote:

Here's what you do:

1) Go to your Window menu, and choose Unhide. You should see a file called "PERSONAL.XLS" that you can open.
2) In that file, put in the LAST purchase order number you used.
3) Then, go to Window, and choose "Hide" again.
4) Go back to the purchase order spreadsheet.
5) Go to Tools-Macro-Visual Basic Editor.
6) Click on the file name on the upper-left hand corner.
7) Go to the Insert menu, and choose "Module."

Paste this code:

Sub AddPONum()
Dim PONum As Long
Windows("PERSONAL.XLS").Visible = True
Range("A1").Activate
Do Until ActiveCell.Formula = ""
ActiveCell.Offset(1, 0).Activate
Loop
ActiveCell.Offset(-1, 0).Activate
PONum = ActiveCell.Formula + 1
Windows("PERSONAL.XLS").Visible = False
Range("B1").Activate
ActiveCell.Formula = PONum
End Sub

The only line you may have to change is the one that says Range("B1").Activate. Change B1 (keep the quotes) to refer to the cell where you want the PO number going.

To run, just go Tools-Macro-Macros, and click on the macro name.

Cheers,
Geoff Lilley

MCDST, Microsoft Office Master Instructor (XP/2000),
Microsoft Office Specialist Master (XP/2000)

"fortune10" wrote:

I am using Office 97 Excel Purchase Order template but cannot find out how to have my P.O. numbers to auto sequence. I have been manually assigning them a number.
Any suggestions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Purchase order dee Excel Discussion (Misc queries) 2 October 25th 05 01:39 AM
how do I link purchase order dates from one excel workbook to ano. LeLe123 Excel Worksheet Functions 1 September 2nd 05 03:55 PM
purchase order counter in excel purchase order template Brandy@baoco Excel Worksheet Functions 0 February 23rd 05 07:17 PM
Template Purchase Order br6 Excel Discussion (Misc queries) 1 January 28th 05 03:08 AM
I want a purchase order that includes page number (if to be order. Angela New Users to Excel 1 December 3rd 04 05:39 PM


All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"