Moderatori: Anthony47, Flash30005
Flash30005 ha scritto:potresti inviare l'indirizzo effettivo dell'Url?
cosa cambia da un mese all'altro?
Penso sia possibile farlo tramite macro sia l'importazione che la variazione di indirizzo per questo è necessario conoscere il link effettivo
ciao
Option Explicit
Sub Aggiorna_Query()
Dim I As Integer, UR As Integer, RR As Integer, Nome_Foglio As String, Nome_Query As String
Dim WS As Worksheet, Indirizzo As String
Set WS = Sheets("Foglio0")
UR = WS.Range("A" & Rows.Count).End(xlUp).Row
For I = 2 To UR
Nome_Foglio = WS.Cells(I, 1)
Indirizzo = WS.Cells(I, 2)
Sheets(Nome_Foglio).Select
RR = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:Z" & RR).ClearContents
Range("A1").Select
Range("L1") = "'" & Indirizzo ' <<===== Puoi eliminarla
With Selection.QueryTable
.Connection = "URL;http://" & Indirizzo
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingAll
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Next I
End Sub
ricky53 ha scritto:utilizzo IE 9 con W7-64 bit
Torna a Applicazioni Office Windows
Supporto per Macro Query import pdf to excel Autore: JanVathek |
Forum: Applicazioni Office Windows Risposte: 10 |
Condizioni IIF nelle Query di Access Autore: GelriccaSud |
Forum: Applicazioni Office Windows Risposte: 2 |
Power query - scarire stessa tabella da più link Autore: Denis7 |
Forum: Applicazioni Office Windows Risposte: 2 |
Visitano il forum: Nessuno e 12 ospiti