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.