A Real-Time Sync Between Excel & Google sheet

vishu

Board Regular
Joined
Oct 26, 2011
Messages
54
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

is it possible to real-time Sync between Excel & Google sheets without using any app or 3rd party addins or plugins?

Connected to Excel from Google Sheets. Google Sheets refreshes every minute but it doesn't reflect in Excel. Even RefreshAll is also not giving proper results.
VBA Code:
Sub Refresh()
      ActiveWorkbook.RefreshAll
End Sub

The same question has been asked on other forums too but no luck.
A Real-Time Sync Between Excel & Google sheet

Thanks in advance
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The above code was found from another thread and this might work but don't know how to use
Auto Transfer data from Google sheets to Excel at a set time interval. Help Please.

VBA Code:
Sub ImportGoogleSheetsQuery()

Dim qt As QueryTable, url As String, key As String, gid As String

Dim n As Long
n = 0

Do Until n = 1

    If ActiveSheet.QueryTables.Count > 0 Then ActiveSheet.QueryTables(1).Delete
    ActiveSheet.Cells.Clear

 '***** Shared Google Sheets Link *****
    key = "XXXXXXXXXXXXXXXXXXXXXXX"
    gid = "0"
    url = "https://spreadsheets.google.com/tq?tqx=out:html&key=" & key _
    & "&gid=" & gid

    Set qt = ActiveSheet.QueryTables.Add(Connection:="URL;" & url, _
    Destination:=Range("A1"))

    With qt
    .WebSelectionType = xlAllTables
    .Refresh

End With

Application.Wait DateAdd("s", 20, Now)

Loop

End Sub



And this is my google sheet url

Google Sheets: Sign-in

Please help me out guys
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top