Kojo Robertson
New Member
Please I have this code to pull data from Google Sheet in Excel, however it only import (pulls) 100 rows from the google sheet while the data is about 3000 rows.
So is there anyway to pull 3000 rows of data from google sheet?
So is there anyway to pull 3000 rows of data from google sheet?
>> Use Code -tags <<
Code:
Sub Basic_Web_Query()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://docs.google.com/spreadsheets/d/1eYp2ZvlOAWCTK3inTnz84wxAUZX502FdPRpfgeQXehc/edit?fbclid=IwAR3ox5aHjGmEiQMYjXJusRNVNgN5BhzGA4bf3jEdItTbR7NmZFY2_D1gQ6Y#gid=0", Destination:=Range("$A$1"))
.Name = "q?s=goog_2"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "1,2"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Last edited by a moderator: