Hi,
I have finally got round to linking all my spreadsheets up to our oracle database through an access SQL query, one problem I have with one workbook is that the on open macro completes before the workbook updates its SQL link.
The SQL is set up through excels normal external data link wizard and runs when you open the workbook. I need a way to trigger the SQL refresh from the macro below and make sure the macro doesn't continue until the SQL refresh is complete.
Code for this workbook is below, the SQL link is on the workbook called "UPDATER", the workbook called "MASTER SAR" is the file that is ultimately updated. For security and database connection issues I cannot have the SQL query on the "MASTER SAR" workbook.
Workbook
Module 1![]()
Please Login or Register to view this content.
Module 2![]()
Please Login or Register to view this content.
Module 3![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks