Argument 'Prompt' cannot be converted to type 'String'

A

Arturo

Hi,

I'm writing an application to change the queries in some Excel pivot tables
(like 300). I exctract the query, modify it and then replace it in the pivot
table. When I do the replacement I've got the error:

Argument 'Prompt' cannot be converted to type 'String'

Here is the code I'm trying to run:

Try
objPivot.EnableRefresh = False
stQuery = objPivot.CommandText.ToString()
objPivot.CommandText = QueryReplacement(stQuery)
Catch er As System.Exception
MsgBox(er)
End Try

Any ideas?

Arturo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top