My company gets hundreds of credit memos a day from a particular vendor. Instead of manually auto applying each one we have been using a macro. The macro we use has been successfully in place for a few months now with no errors. Now all of a sudden we started getting the error "Macro command not found. (Line #2)." We can't figure out why it is happening. Nothing has changed with the macro and we haven't made any updates or dictionary changes. Below is a sample of the macro code. It's simply this code repeated for each open credit memo from this vendor. We tested and tried removing everything expect the first two lines, and the macro runs fine with no errors. It doesn't do anything of course because the first two lines just check for a window, but it runs without an error message. Once we replace the other lines though we get the error. We tried restarting the system thinking it was maybe a memory leak problem, but that did not fix the issue. We are not sure what to try next any thoughts or suggestions would be greatly appreciated.
##################################
CheckActiveWin dictionary 'default' form 'PM_Apply_To_Maintenance' window 'PM_Apply_Document'
NewActiveWin dictionary 'default' form 'PM_Apply_To_Maintenance' window 'PM_Apply_Document'
MoveTo field 'Vendor ID'
TypeTo field 'Vendor ID' , '19099'
MoveTo field 'Document Number'
MoveTo field 'Document Type' item '2' # 'CREDIT MEMO'
ClickHit field 'Document Type' item 2 # 'CREDIT MEMO'
MoveTo field 'Document Number'
TypeTo field 'Document Number' , '0170-241261'
MoveTo field 'Auto Apply Button'
ClickHit field 'Auto Apply Button'
*This post is locked for comments
I have the same question (0)