Hi,
I have the following line in a master workbook that passes certain variables to a given function in other workbooks:
bActivity = ActiveWorkbook.Application.Run(vArray(y, 4) & "!" & _
vArray(y, 6), vArray(y, 3), vArray(y, 5), vParameters)
All of my vArray() variables related to previously-assigned values, but I'm having trouble with the very last argument - vParameters. This value is actually a dynamically-built string of query parameters that are formatted for the Run method. To be brief, this method is looped repeatedly for several workbooks that I'm calling, and each book has it's own number of query parameters. As such, my vParameters is an attempt to continue the Run method syntax. For example, vParameters(1) might be assigned ", 1/1/2003, 1/31/2003". What I would like to do is have this text continue in the Run line above, as a continuation of the literal command. Trouble is, the line interprets vParameters as a single value, rather than referring to its contents. Any thoughts?
Thanks for your help,
Shaun
I have the following line in a master workbook that passes certain variables to a given function in other workbooks:
bActivity = ActiveWorkbook.Application.Run(vArray(y, 4) & "!" & _
vArray(y, 6), vArray(y, 3), vArray(y, 5), vParameters)
All of my vArray() variables related to previously-assigned values, but I'm having trouble with the very last argument - vParameters. This value is actually a dynamically-built string of query parameters that are formatted for the Run method. To be brief, this method is looped repeatedly for several workbooks that I'm calling, and each book has it's own number of query parameters. As such, my vParameters is an attempt to continue the Run method syntax. For example, vParameters(1) might be assigned ", 1/1/2003, 1/31/2003". What I would like to do is have this text continue in the Run line above, as a continuation of the literal command. Trouble is, the line interprets vParameters as a single value, rather than referring to its contents. Any thoughts?
Thanks for your help,
Shaun