Excel_User_10k
Board Regular
- Joined
- Jun 25, 2022
- Messages
- 100
- Office Version
- 2021
- Platform
- Windows
Hi all,
I saw a YT video (
) that explains how to sync Excel with Google Sheets so that when a Cell value is changed, it will update on Google Sheets to do the same. Firstly, I followed the video but it doesn't seem to work for me where a 'test' is done that they type something in to A1, for instance, and the Webhook says something like 'successful' to confirm that it received the update before the tutorial then continues to link it to Google Sheets and then when trying to setup the Google Sheets I don't have the same options as shown in the video when attempting to map it.
This is the code as is:
(Where is replaced by the link to the Web...to be able to amend where needed.
Thank You.
I saw a YT video (
This is the code as is:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1:Z100")) Is Nothing Then
Dim objHTTP As Object
Dim URL As String, Json As String, CellValue As String, SheetName As String
Dim RowNum As Long
ColLett = Split(Cells(1, Target.Column).Address, "$")(1) 'Column Letter
RowNum = Target.Row 'Row Number
SheetName = Name 'Sheet Name
CellValue = Target.Value 'Cell Value
Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
URL = "[URL]?SheetName=" & SheetName & "&Column=" & ColLett & "& RowNumber=" & RowNum & "&CellValue=" & CellValue
objHTTP.Open "Patch", URL, False
objHTTP.setRequestHeader "Content-Type", "applicationjson"
objHTTP.send (Json) 'Send Information
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub