Milothicus
Registered User.
- Local time
- Today, 12:02
- Joined
- Sep 24, 2004
- Messages
- 134
this doesn't actually have anything to do with access, but the vba code would be the same if it were... and yes, i really do need the code to wait for excel.
i'm exporting data from another program (solidworks, actually) and creating reports in excel. in my options form, i allow the user to choose wether they'd like the report to print, or just preview the report, to make sure it's right before printing... the problem comes once the print preview has been open for about 5 seconds... i get a 'server busy' error in my solidworks window, i'm assuming because the code is trying to continue working on the spreadsheet, but since the report's in print preview, it can't do anything.
any idea how to pause the code until the print preview has either been printed or closed?
i'm exporting data from another program (solidworks, actually) and creating reports in excel. in my options form, i allow the user to choose wether they'd like the report to print, or just preview the report, to make sure it's right before printing... the problem comes once the print preview has been open for about 5 seconds... i get a 'server busy' error in my solidworks window, i'm assuming because the code is trying to continue working on the spreadsheet, but since the report's in print preview, it can't do anything.
any idea how to pause the code until the print preview has either been printed or closed?