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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Watch MrExcel Video

Forum statistics

Threads
1,089,751
Messages
5,410,223
Members
403,304
Latest member
pajg

This Week's Hot Topics

Top