1
有誰知道如何停止刷新查詢表來不斷刷新,只刷新一次。他不斷刷新,正在讓我的Excel電子表格運行緩慢。如何不刷新backgroundQuery vba
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & FilePath, _
Destination:=temp.Range("A1"))
.Name = "Deloitte_2013_08"
' .CommandType = 0
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Woops。我絕對誤解了這個問題:) +1爲最佳答案。我的工作很有用,但不會這樣做。 – enderland
@enderland,我討厭它發生的時候:)。但至少我們有兩個笑臉gravatars。 –
謝謝@DougGlancy它的工作!謝謝 :) – Abi