Hello,
I am using Excel 2010 and this is what I want to do in VBA:
1. Show a User Form.
2. Retreive data from Sql Server based on parameters from the Form.
3. Populate a WorkSheet with the selected data.
4. Hide the User Form
5. When the user Clicks The Refresh Button in the Data tab I would like to show the the User Form Again.
1-4 is no problem. I don't know how to solve number 5. I have been looking for an event to catch but haven't succeded . Anyone the that have done this ?
Thanks in advance.
I am using Excel 2010 and this is what I want to do in VBA:
1. Show a User Form.
2. Retreive data from Sql Server based on parameters from the Form.
3. Populate a WorkSheet with the selected data.
4. Hide the User Form
5. When the user Clicks The Refresh Button in the Data tab I would like to show the the User Form Again.
1-4 is no problem. I don't know how to solve number 5. I have been looking for an event to catch but haven't succeded . Anyone the that have done this ?
Thanks in advance.