I wrote a program to take Excel data in an Excel spreadsheet and put it in a PDF form. The program opens the PDF form, fills in the data, and then saves and closes the PDF. It then refocuses to the Excel Workbook. It works fine on my laptop, but when I handed it off to a friend a run-time error of Invalid procedure call or argument
showed up on...
AppActivate ThisWorkbook.Name
I'm wondering why this worked for me, but not my friend. I'm also wondering if there is another way to bring the focus back to the Excel Workbook. Thanks!
Edit: I want it to refocus to Excel to show a Msgbox being popped up indicating that the tool has done it's job.
ThisWorkbook.Activate
MsgBox "Job Completed!"