Open navigation

How to transfer Supermetrics queries to other users in Excel

Supermetrics queries in Excel are tied to the connections used to create them. Use this guide to transfer queries to a different account or manage multiple accounts. These steps ensure that your copied spreadsheets use the right access credentials and keep your scheduled updates going.


If you have queries that use a connection you can't manage, for example, if the connection belongs to a user who left the organization, you can replace the connection to keep the queries running. This means that all queries that use the replaced connection will use the substitute instead. Learn more about replacing a connection.


On the Supermetrics Hub, you can connect to data sources and manage your data source connections. From the Hub, you can also share an authentication link with someone who has access to a data source you need to connect to.


Before you begin

Before transferring queries to a different user, make sure that:

  • The user you're transferring the queries to has been assigned to a Supermetrics for Excel license and has access to the Excel files where the queries are or will be moved to. If you can't access the license or the Supermetrics Hub to assign the license to a different user, contact our support team for help.
  • The user has access to all the data sources and connections in the queries. Learn more about data source permissions.

Any scheduled report triggers associated with the queries will be removed when you transfer the query to a different user. To keep the triggers working, delete your old triggers and set up new triggers for the new user.


To prevent other users from using your access rights to refresh or edit queries, open the Excel spreadsheet with the queries you want to transfer to a different user, then log out from the data sources connected to your credentials. Logging out from the data sources removes your authentication information. Other users with access to these data sources can refresh the queries using their own access credentials.


Instructions

Transfer queries to a different user in the same spreadsheet
  1. The new user should log in to Microsoft Office and then open the Excel file that will be transferred to them.
  2. Open the Supermetrics sidebar.
  3. Log in to each data source the queries pull from. This is to set the permissions for this user for the next steps. Learn more about logging in to data sources in Excel.
  4. Create a new query for each data source using your connection. Close the sidebar after your queries are complete.
  5. Open the SupermetricsQueries tab. (This is hidden by default. To open the tab, right-click on a tab, click Unhide..., and select SupermetricsQueries.)
  6. For each query to be transferred:
    1. Copy the value in the "Refresh with user account" column (column AT) from the query that uses the new connection.
    2. Paste the value to the "Refresh with user account" column (column AT) for the query rows you want to transfer to use the new connection.
      Pay attention to paste the "Refresh with user account" values to the correct query row to match the data source.
    3. Delete the "query ID" (column A) value in that query row.
  7. Once all the queries have been prepared, open the sidebar, click the 3-line menu in the top left ( ), and then Refresh all.

After you refresh, you'll see a new Query ID in column A. Every time you transfer a query and refresh, verify that it has values in these cells.

Transfer queries to a different user in a different spreadsheet

You can transfer the queries to a different user manually:

  1. Open the new Excel file that you want to transfer the queries to.
  2. Open the Supermetrics sidebar. 
  3. Log in to each data source the queries pull from.
  4. On the new spreadsheet, create a new query for each data source using your connection. Close the sidebar after your queries are complete.
  5. Open the original Excel file that contains the queries to be transferred.
  6. In both files, open the SupermetricsQueries tab. (This is hidden by default. To open the tab, right-click on a tab, click Unhide..., and select SupermetricsQueries.)
  7. In the original spreadsheet, select and copy the whole rows in the SupermetricsQueries that contain the queries you want to transfer.
  8. Paste these rows into the SupermetricsQueries tab in the new spreadsheet.
  9. Don't edit any rows above Row 16 in the SupermetricsQueries tab.
  10. Staying in the same tab on the new spreadsheet, delete the values in the Query ID (column A).
  11. For each query to be transferred: 
    1. Copy the value in the "Refresh with user account" column (column AT) from the query that uses the new connection.
    2. Paste the value to the "Refresh with user account" column (column AT) for the query rows you want to transfer to use the new connection.
      Pay attention to paste the "Refresh with user account" values to the correct query row to match the data source.
  12. Once all the queries have been prepared, open the sidebar, click the 3-line menu in the top left ( ), and then Refresh all.

After you refresh, you'll see a new Query ID in column A. Every time you transfer a query and refresh, verify that it has values in these cells.

Create new triggers for the new user

Scheduled report triggers are removed when you transfer the query to a different user. To keep scheduled refresh triggers working after transferring the queries to another user, you have to delete the old triggers and create new triggers for the new user.

Troubleshooting

If a transferred query fails because it can't get a range for the query, it could be because the new query can't recognize the range for the new data to be written on. Update the query range to solve this issue.


Update query range
  1. Open the SupermetricsQueries tab. If hidden, right-click on a tab, click Unhide..., and select SupermetricsQueries.
  2. Delete the values in the "Sheet name" (column D) and "Range address" (column E) columns. 
  3. In the "Sheet name" column, add the name of the spreadsheet you want your query to be in.
  4. In the "Range address" column, add the cells you want to have as the query range. It can help to copy this information over from your original spreadsheet, so your query appears in the same location in the new spreadsheet.
  5. Open the sidebar, click the 3-line menu in the top right ( ), and click Refresh all to complete the process.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.