Power Query Update - Mac

Herbiec09

Active Member
Joined
Aug 29, 2006
Messages
250
Goodmorning All

I have a small dilemma and was looking for ideas on a work around.

There is an Excel report that I have built on our shared drive. This report is based on a table created from a power query link into our company database.

I have inserted a macro so that when the workbook is opened the connection to the database is refreshed so that the latest data is pulled in.

The dilemma is that I use a windows based machine and this report is for my boss who is on a mac. Apparently Mac's do not support power query so this kicks of an error as "the connection is not supported"

Any ideas on how I can work round this and still achieve an automated solution?

Thank you

Herbz
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Have you tried using MSQuery instead of PQ? That should be supported on the Mac.
 
Upvote 0
Thanks for the suggestion

I have never used MS Query, I use Microsoft Office 365 how do I use it from Excel 2016?

Thanks
 
Upvote 0
Not to worry RoryA,

I have figured it out, many thanks.

VBA code that I was using to update the links on opening when I was using PQ was:

Private Sub Workbook_Open()

' Macro to update my Power Query script(s)

Dim lTest As Long, cn As WorkbookConnection
On Error Resume Next
For Each cn In ThisWorkbook.Connections
lTest = InStr(1, cn.OLEDBConnection.Connection, "Provider=Microsoft.Mashup.OleDb.1", vbTextCompare)
If Err.Number <> 0 Then
Err.Clear
Exit For
End If
If lTest > 0 Then cn.Refresh
Next cn

End Sub

Would you be able to assist with an equivalent when using MS Query.

many many thanks
 
Upvote 0
You should be able to just set the table to refresh when the workbook is opened in the table properties?
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top