Bonjour,
Je ne trouve pas de solution pour modifier le code d'extraction que vous trouverez plus bas.
J'aimerais modifier l'URL en fonction de cellule.
Exemple: A1: Hugo -> "URL;http//
www.google.com"
B6: Ben -> "URL;http//
www.excel-downloads.com"
une idée :S ?
"Sub GPTExt()
Sheets("ExtractGPT").Cells.Clear
With Sheets("ExtractGPT").QueryTables.Add(Connection:= _
"URL;http//XXXXX.COM" _
, Destination:=Range("$A$5"))
.Name = "frmProjectListGpt"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingAll
.WebTables = "7"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub"