Fonda,
You can run a macro that you create through a mail merge.
A macro is just a text file. When you record a macro in GP, it creates a .mac file that you name. The file can be modified in any text editor (Word, Notepad,etc.)
The basic idea is to create a macro to close one PO and then modify the macro by copying the lines of the original macro and changing the PO number for each iteration.
These are the steps:
First, create an Excel worksheet with the list of PO's you want to close. I used the canned Smartlist received-not-invoiced and added a date cutoff. Export to Excel and save it as a .txt file. It will look like this:
PO Number
'091214'
'091214-1'
091714-2'
'092214MARY'
etc.
Then, in Word, create a mail merge. This link has step-by-step instructions:
blogs.msdn.com/.../how-to-use-word-mail-merge-and-macros-to-import-data.aspx
My Word document looked like this:
TypeTo field 'PO Number' , '091214'
MoveTo field 'PO Status' item 0
ClickHit field 'PO Status' item 3 # 'Closed'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
These are the first lines of the macro that was created through the mail merge:
# DEXVERSION=12.00.0276.000 2 2
ActivateWindow dictionary 'default' form 'POP_Edit_PO_Status' window 'POP_Edit_PO_Status'
TypeTo field 'PO Number' , '091214'
MoveTo field 'PO Status' item 0
ClickHit field 'PO Status' item 3 # 'Closed'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
TypeTo field 'PO Number' , '091214-1'
MoveTo field 'PO Status' item 0
ClickHit field 'PO Status' item 3 # 'Closed'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
TypeTo field 'PO Number' , '091714-2'
MoveTo field 'PO Status' item 0
ClickHit field 'PO Status' item 3 # 'Closed'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
TypeTo field 'PO Number' , '092214MARY'
MoveTo field 'PO Status' item 0
ClickHit field 'PO Status' item 3 # 'Closed'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'Etc.
Note that I had to omit the first 2 lines when I created the mail merge so they wouldn't keep repeating (that made the macro crash). I added those 2 lines to the beginning of the macro after the mail merge document was created.
Once the PO's are closed they can be removed to history. I used the same source file and created another macro. This was the macro for the first 2 PO's:
# DEXVERSION=12.00.0276.000 2 2
ActivateWindow dictionary 'default' form 'POP_Remove_Completed_PO' window 'POP_Remove_Completed_PO'
MoveTo field '(L) From PO Number'
TypeTo field '(L) From PO Number', '091214'
MoveTo field '(L) To PO Number'
TypeTo field '(L) To PO Number', '091214'
MoveTo field 'Insert Button'
ClickHit field 'Insert Button'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
NewActiveWin dictionary 'DEX.DIC' form 'Report Destination' window 'Report Type'
MoveTo field '(L) Cancel'
ClickHit field '(L) Cancel'
NewActiveWin dictionary 'default' form 'POP_Remove_Completed_PO' window 'POP_Remove_Completed_PO'
NewActiveWin dictionary 'default' form 'POP_Remove_Completed_PO' window 'POP_Remove_Completed_PO'
MoveTo field '(L) From PO Number'
TypeTo field '(L) From PO Number', '091214-1'
MoveTo field '(L) To PO Number'
TypeTo field '(L) To PO Number', '091214-1'
MoveTo field 'Insert Button'
ClickHit field 'Insert Button'
MoveTo field 'Process Button P'
ClickHit field 'Process Button P'
NewActiveWin dictionary 'DEX.DIC' form 'Report Destination' window 'Report Type'
MoveTo field '(L) Cancel'
ClickHit field '(L) Cancel'
Of course I strongly urge you to run the macro on a small sample in a test database, and then in full on the test database, before you run it in your live company as the changes are difficult to undo.
Good luck! This saved us many hours of keypunching…