Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" <p@tove> a écrit dans le message de
news:4086a32f$0$26995$626a14ce@news.free.fr...
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" <p@tove> a écrit dans le message de
news:4086a32f$0$26995$626a14ce@news.free.fr...
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais je
voudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaque
jour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" a écrit dans le message de
news:%Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais je
voudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaque
jour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" <michel.pierron@free.fr> a écrit dans le message de
news:%23ohfZX8JEHA.3184@TK2MSFTNGP10.phx.gbl...
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" <p@tove> a écrit dans le message de
news:4086a32f$0$26995$626a14ce@news.free.fr...
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais je
voudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaque
jour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" a écrit dans le message de
news:%Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
des
donnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour,
Si j'ai bien compris:
lurldujour = range("a1").value
"pat" a écrit dans le message de
news:4086b2ac$0$17620$Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais jevoudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaquejour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" a écrit dans le message de
news:%Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
desdonnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
.htm",Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour,
Si j'ai bien compris:
lurldujour = range("a1").value
"pat" <p@tove> a écrit dans le message de
news:4086b2ac$0$17620$636a15ce@news.free.fr...
Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais je
voudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaque
jour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" <michel.pierron@free.fr> a écrit dans le message de
news:%23ohfZX8JEHA.3184@TK2MSFTNGP10.phx.gbl...
Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" <p@tove> a écrit dans le message de
news:4086a32f$0$26995$626a14ce@news.free.fr...
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour,
Si j'ai bien compris:
lurldujour = range("a1").value
"pat" a écrit dans le message de
news:4086b2ac$0$17620$Bonjour Michel,
Merci pour ton aide,
Ta macro marche bien, mais je ne voulais pas inscrire l'url en a1,
mais jevoudrais recuperer l'url qui est inscrite en a1. Cette url varie
chaquejour.
Suis-je plus clair ?
Cordialement
patrick
"Michel Pierron" a écrit dans le message de
news:%Bonsoir Pat;
Pourquoi pas simplement:
Sub requete()
Const strURL As String = "http://pleguet.free.fr/01.htm"
With ActiveSheet
.Range("A1") = strURL
With .QueryTables.Add(Connection:="URL;" & strURL,
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End With
End Sub
MP
"pat" a écrit dans le message de
news:4086a32f$0$26995$Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere
desdonnéessur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01
.htm",Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
End Sub
Bonjour à tous
Avec la macro ci dessous (merci l'enregistreur !!!), je recupere des
données
sur le web.
Jusqu'ici ous va bien.
Mon pb : je voudrais recuperer l'url en cellule A1
D'avance Merci de vous pencher sur mon cas
Cordialement
Patrick
Sub requete()
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://pleguet.free.fr/01.htm",
Destination:=Range("A2"))
.Name = "01"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:úlse
End With
End Sub