VBA Refresh Excel Link Table

shamas21

Registered User.
Local time
Today, 12:44
Joined
May 27, 2008
Messages
162
Hi All

I have a link Table to an Excel spreadsheet called 'tblLinkTable'.

I want to refresh the specific table automatically in VBA.

Ive got as far as:

Code:
RunCommand acCmdLinkedTableManager

this only opens the lnik table manager but i need it to automatically Update the 'tblLinkTable' Table.

Can someone help please?

Thanks
 
you can do this in code:

Code:
Dim tdf As DAO.TableDef
  
  Set tdf = Currentdb.TableDefs("YourTableName")
  tdf.RefreshLink
  Set tdf = Nothing
 

Users who are viewing this thread

Back
Top Bottom