- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've written a VBA code to connect to MySQL to get information to do some calculation and drawing, and then export the results back to MySQL again.
I would like the code to run automatically on a fixed time interval without human intervention but was unsuccessful. I have tried the following:
1. Enabled the Microsoft Excel Object Library in Reference so that I could use the Excel command "Application.OnTime Now + TimeValue("00:00:01")" ;
2. Using AutoCAD Core Console with a script file that include the commands -vbaload and -vbarun, but the command returned "Unknown command "-vbaload"". My intention is to use accoreconsole.exe to run the script file and use a Windows batch file to run an infinity loop on the accoreconsole.exe every 5 minutes.
Is there any workable way out there which is easily implemented and maintained?
Thanks,
Best regards,
KH Teow
Solved! Go to Solution.