Hi all, hope someone can help here.
I have a spreadsheet that is connecting to a SQL server database via Power Query. Using the data generated from the SQL query, I have built pivot tables to summarise the data into it's key categories. The database updates daily so the data and pivot tables change when I refresh the connection in the spreadsheet.
My problem is I need to pass this spreadsheet to another person who does not have access to the SQL server database. Obviously then when they hit refresh on the Power Query connection, an error appears saying 'no access to database' etc.
I'm hoping to automate this so that I personally don't have to refresh the data each day. I would like to put the spreadsheet on a shared drive so that the person who needs can access it and have the power query connection refresh itself.
My question is - is it possible for a macro to automatically run at a certain time daily, without someone having to manually start the macro? Obviously if I put a 'run macro' button on the spreadsheet, it's still not going to work for the person I pass it to as they don't have access to the database.
Can a macro run but itself if programmed in a certain way?
I have a spreadsheet that is connecting to a SQL server database via Power Query. Using the data generated from the SQL query, I have built pivot tables to summarise the data into it's key categories. The database updates daily so the data and pivot tables change when I refresh the connection in the spreadsheet.
My problem is I need to pass this spreadsheet to another person who does not have access to the SQL server database. Obviously then when they hit refresh on the Power Query connection, an error appears saying 'no access to database' etc.
I'm hoping to automate this so that I personally don't have to refresh the data each day. I would like to put the spreadsheet on a shared drive so that the person who needs can access it and have the power query connection refresh itself.
My question is - is it possible for a macro to automatically run at a certain time daily, without someone having to manually start the macro? Obviously if I put a 'run macro' button on the spreadsheet, it's still not going to work for the person I pass it to as they don't have access to the database.
Can a macro run but itself if programmed in a certain way?