LANCEMENT DE REQUETES

  • Initiateur de la discussion yohann
  • Date de début
Y

yohann

Guest
re bjr,

Comment lancer une requete avec une macro SVP

Merci pour vos reponses

yohann
 
M

Mytå

Guest
Bonsoir le forum

Yohann voici une base que j'utilise dans un programme une requete sur une page html

Sub Req_web()
Sheets("Triage").Select
Range("T10").Value = "LIRE TIRAGE"
Application.ScreenUpdating = False
Sheets("Update").Activate
With ActiveSheet.QueryTables.Add(Connection:= _
"FINDER;C:\WINDOWS\Application Data\Microsoft\Requêtes\hr_6.iqy", Destination _
:=Sheets("Update").Range("A1"))
.Name = "DonnéesExternes_1"
.FieldNames = False
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = False
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
Range("A1").Select
Sheets("Triage").Activate
Application.ScreenUpdating = True
Call Transfert_donnees
Application.ScreenUpdating = False
Call Stats
Call dernier_tirage
Application.ScreenUpdating = True
Sheets("Triage").Activate
End Sub

et creer un fichier avec le bloc-notes ici hr_6.iqy dans le repertoire C:\WINDOWS\Application Data\Microsoft\Requêtes

WEB
1
http://diffusion.loto-quebec.com/sw3/res/asp/hr_6.asp

Selection=EntirePage
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False

A suivre
smiley_417.gif


P.S. Prière d'accuser réception si cela te convient
ou ne convient pas en répondant sur ce Post ... Merci !
 

Discussions similaires

Statistiques des forums

Discussions
312 321
Messages
2 087 231
Membres
103 497
dernier inscrit
JP9231