Excel maintaining connections to Access

FueledbyExcel

New Member
Joined
Oct 18, 2019
Messages
1
I have multiple excel files with several connections to a single Access database.
The problem I have is that if more than one file is open at once no one can refresh the files to draw in the latest information from Access. Unfortunately, as these are used for forecasting the files there will pretty much always be more than one open.

What I would like to do is write a few bits of VBA which will


  1. Refresh all connections on opening the workbook then close the connection
  2. Re-open, refresh & save the connections on closing the workbook
  3. Re-Open, refresh & then close the connections whenever anyone clicks Refresh All

I just have no idea where to begin. Any help or guidance would be most welcome.
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,089,238
Messages
5,407,078
Members
403,122
Latest member
Anar1046

This Week's Hot Topics

Top