I have a spreadsheet with multiple queries linked to it. When the user wishes to refresh the queries, they press a "refresh all" button I have provided to them which just saves them the time of having to utilize the built-in menu options simply because they never remember where to find it. The code behind the button is simple: "ActiveWorkbook.RefreshAll"
However, one of the queries it is refreshing requires a parameter (assembly number). Right now they have to copy this value from cell A15 and paste it into the popup window when prompted. I would like the macro to grab the contents from cell A15 and paste it into the popup window for them. It will always appear in cell A15. I can't seem to find anything on how to pass a value from the clipboard to a query parameter when prompted.
Can someone please provide some code for me?
Thanks!
However, one of the queries it is refreshing requires a parameter (assembly number). Right now they have to copy this value from cell A15 and paste it into the popup window when prompted. I would like the macro to grab the contents from cell A15 and paste it into the popup window for them. It will always appear in cell A15. I can't seem to find anything on how to pass a value from the clipboard to a query parameter when prompted.
Can someone please provide some code for me?
Thanks!