When writing a macro for a parameter query in Excel pivot table, I can do this: “WHERE field = ?”
and I am given a prompt “Parameter 1” before running the pivot. I would like to customize the prompt but have not been successful. I tried “WHERE field = [Give Branch Name]” which works with MS Query but not in VBA. Alternatively, there is a PromptString property in VB but it works only for QueryTable (Parameters is not a member of PivotTable). How do I change the default prompt to something more instructive?
and I am given a prompt “Parameter 1” before running the pivot. I would like to customize the prompt but have not been successful. I tried “WHERE field = [Give Branch Name]” which works with MS Query but not in VBA. Alternatively, there is a PromptString property in VB but it works only for QueryTable (Parameters is not a member of PivotTable). How do I change the default prompt to something more instructive?