Ejecutar Macro de Excel desde VFP?
Publicado por Henry (16 intervenciones) el 29/08/2007 21:26:19
Hola por favor alguien que sepa bastante sobre este tema me pueda
ayudar a correr el siguiente macro generado en Excel, pero para
correrlo desde VFP a travez de un PRG.
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:="URL;http://
www.google.co.cr", _
Destination:=Range("A1"))
.Name = "www.google.co.cr"
.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
Gracias por la ayuda al respecto
ayudar a correr el siguiente macro generado en Excel, pero para
correrlo desde VFP a travez de un PRG.
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:="URL;http://
www.google.co.cr", _
Destination:=Range("A1"))
.Name = "www.google.co.cr"
.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
Gracias por la ayuda al respecto
Valora esta pregunta


0