Use excel query parameters to also be column header
Hi all.
I have an excel 2007 file whose data source is a sql table. When the user opens the file it asks them for 2 parameters how can have the 2 parameters the user enters appear as a column header using vba?
Yes. If you right-click the table, choose Table-Parameters... you should be able to choose cells as the input ranges and also specify that the table should update automatically if their values are changed.
Microsoft Excel
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
ASKER
So what you're suggesting is that I put the parameters in a cell?