I have a relatively simple Excel spreadsheet.
The second sheet is set to present the result sets of a query run - which is passed one parameter.
This parameter is fed from a cell in the first sheet of the same spreadsheet - and is set to 'Refresh automatically when cell value changes'.
What I want to do is now introduce a button to enable the user to refresh the data output - still based on the same entry as made in the cell on the first sheet (i.e. stock code).
How can I get this data to refresh based on a button click?
I've tried setting up a Macros behind the button that stores the value from the cell, blanks it and then resets it (to the value as stored) - but this does not seem to refresh the data on the second sheet.
The refresh only works if I go into the cell on the first sheet, modify the contents and then reset it back to it's original value.
Can anyone suggest the simplest means to do this?
Thanks in advance.
Steve
The second sheet is set to present the result sets of a query run - which is passed one parameter.
This parameter is fed from a cell in the first sheet of the same spreadsheet - and is set to 'Refresh automatically when cell value changes'.
What I want to do is now introduce a button to enable the user to refresh the data output - still based on the same entry as made in the cell on the first sheet (i.e. stock code).
How can I get this data to refresh based on a button click?
I've tried setting up a Macros behind the button that stores the value from the cell, blanks it and then resets it (to the value as stored) - but this does not seem to refresh the data on the second sheet.
The refresh only works if I go into the cell on the first sheet, modify the contents and then reset it back to it's original value.
Can anyone suggest the simplest means to do this?
Thanks in advance.
Steve