Hi,
I have create a Macro in Excel which will get the table from the
web page into excel. Now I want to call this Macro from VB6.0. How it
is possible....Also I want to change the sskicode(In the below code it
is GVFILM ) through loop as it is in my list. How to do that..Plz mail
me as soon as possible.
******************************************************************************************************************
Sub PullData()
'
' PullData Macro
' Macro recorded 05/05/2006
'
' Keyboard Shortcut: Ctrl+d
'
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.sharekhan.com/News/CompanyDetailedQuote.aspx?Exchange=BSE&sskicode=GVFILM"
_
, Destination:=Range("A1"))
.Name =
"CompanyDetailedQuote.aspx?Exchange=BSE&sskicode=GVFILM"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "6,7"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
ActiveWindow.SmallScroll Down:=12
Range("B24").Select
End Sub
******************************************************************************************************************