Hej jeg kører en macro i excel, men problemet er at hjemmesiden ikke opdaterer automatisk. Kan jeg kode Ctrl+F5 ind i min macro?
min macro ser sådan ud:
Private Sub CommandButton1_Click()
Range("B6").Select
Selection.ClearContents
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;
http://www.kostberegner.dk/version.txt", Destination:=Range("$B$6"))
.Name = "version"
.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
End Sub
vh
Mathias