Using a macro recorder in Excel, I generated code for creating a Pivot Table based on an external database (comma delimited text file) and an OLAP Cube based on the data. Attempting to automate this code to accept any input data source, file name, and field queries I have replaced some arguments with variables.
For some of the parameters, I'm getting a type mismatch when I when I replace the argmuents with the variables by putting:
" + variant_variable + "
in place of the argument.
It worked for the Data Source parameter argument, but it doesn't seem to be working for the others. Any guidance would be highly appreciated.
For some of the parameters, I'm getting a type mismatch when I when I replace the argmuents with the variables by putting:
" + variant_variable + "
in place of the argument.
It worked for the Data Source parameter argument, but it doesn't seem to be working for the others. Any guidance would be highly appreciated.