I am using Visual Basic to receive data from a Google sheet column using a key created in Credentials. Initially it works fine with the first sheet ID I used but I keep on getting "permission denied" if I use other ID's. Does anybody have a hint of what could cause the error?
The code creating the string used for calling the sheet looks like this
Dim sheetURL As String = "https://sheets.googleapis.com/v4/spreadsheets/" & GoogleID & "/values/" & SheetID & "!" & ColumnID & ":" & ColumnID & "?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"