Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88075

CDATA Excel Add-in for Google Sheets Connection String

$
0
0

Just trying if anyone here knows how to fix my problem with CDATA Excel add-in for Google Sheets. My problem is how to use the connection value in an already established connection to pass the SetConnectionString in VBA. I always get an error using the connection string in the hidden worksheet "CDATACONNECTION".

This was the connection value in the establish connection provided in the workbook: (asterisks replaced)

CONNECTIONSTRING= Firewall Password="WiHgj*********************"; OAuth Client Secret="WiHgjJoE****************"; OAuth JWT Password="WiHgj*****************"; Proxy Password="WiHg*****************************"

And this is saved in an specific worksheet in Range("B4") An error is encountered in this line

'{Connection string assignment}
  ConnectionString = Replace(Sheets("CDATACONNECTION").Range("B4").Value, """", "'")

  With cdata
    .SetProviderName ("GoogleSheets")
    .SetConnectionString (ConnectionString) '<---this line
  End With

Many thanks.


Viewing all articles
Browse latest Browse all 88075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>