Hi all,
I am brand new to VBA/T-SQL so apologies if anything is unclear or it is a stupid question.
I have the following simple Macro to refresh data in a query table that runs fine on Excel 2016 on my PC:
When I try to run the Macro via a form control button on a colleague's Mac I get the following:
'Compile error:
method or data member not found'
and the debugger highlights the word 'Queries' in the FastCombine command.
Is this a problem with opening the file on a Mac? Or some other issue within the VBA itself?
Thanks in advance for any guidance.
I am brand new to VBA/T-SQL so apologies if anything is unclear or it is a stupid question.
I have the following simple Macro to refresh data in a query table that runs fine on Excel 2016 on my PC:
Code:
Sub RefreshVIPData()
'
' RefreshVIPData Macro
'
ThisWorkbook.Queries.FastCombine = True
Application.DisplayAlerts = False
'
Range("Query1[[#Headers],[AnimRecNo]]").Select
Application.CutCopyMode = False
Selection.ListObject.QueryTable.Refresh BackgroundQuery:=False
Application.DisplayAlerts = True
End Sub
'Compile error:
method or data member not found'
and the debugger highlights the word 'Queries' in the FastCombine command.
Is this a problem with opening the file on a Mac? Or some other issue within the VBA itself?
Thanks in advance for any guidance.
Comment