I haven't found exactly what I need on the boards, so hope someone can help.
I have a macro that refreshes a dataset from SQL, then creates a new sheet with some of that data placed and formatted as desired. My issue is that after that macro runs, I need to run another macro when any cell in column A is selected. I could do this normally by using Worksheet_SelectionChange(ByVal Target As Range), however, since the data gets inserted and changed in my worksheet when refreshing it, this is triggering the macro without actually selecting an individual cell.
So my questions are. . .how can I make a macro run by selecting a single cell, but ONLY make that possible after the data is refreshed and formatted with my first macro? And how do I make any cell in column A the trigger for the macro, instead of a specific cell?
Thanks in advance for any assistance.
I have a macro that refreshes a dataset from SQL, then creates a new sheet with some of that data placed and formatted as desired. My issue is that after that macro runs, I need to run another macro when any cell in column A is selected. I could do this normally by using Worksheet_SelectionChange(ByVal Target As Range), however, since the data gets inserted and changed in my worksheet when refreshing it, this is triggering the macro without actually selecting an individual cell.
So my questions are. . .how can I make a macro run by selecting a single cell, but ONLY make that possible after the data is refreshed and formatted with my first macro? And how do I make any cell in column A the trigger for the macro, instead of a specific cell?
Thanks in advance for any assistance.