Yecart77
New Member
- Joined
- Nov 8, 2022
- Messages
- 20
- Office Version
- 365
- 2021
- 2019
- 2016
- Platform
- Windows
Hi All,
Hopefully and easy one to solve in the hands of experts.
With an unprotected worksheet I have data in Power Query that is presented in a table with a Slicer and a button set up with this macro assigned to refresh the table that works perfectly.
Sub RefreshQuery()
ThisWorkbook.Worksheets("Worksheet Name').ListObjects("Query Name").QueryTable.Refresh
End Sub
But I do want to protect the worksheet and still allow people do not have the protect worksheet password to
How can I modify the above macro to allow people to use the slicer and be able to click on the refresh button and table updates?
Thank you one and all, I appreciate the help.
Cheers,
Tracey
Hopefully and easy one to solve in the hands of experts.
With an unprotected worksheet I have data in Power Query that is presented in a table with a Slicer and a button set up with this macro assigned to refresh the table that works perfectly.
Sub RefreshQuery()
ThisWorkbook.Worksheets("Worksheet Name').ListObjects("Query Name").QueryTable.Refresh
End Sub
But I do want to protect the worksheet and still allow people do not have the protect worksheet password to
- Use the Slicer
- Be able to click on the button to refresh the table.
How can I modify the above macro to allow people to use the slicer and be able to click on the refresh button and table updates?
Thank you one and all, I appreciate the help.
Cheers,
Tracey