View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Vijay Kotian Vijay Kotian is offline
external usenet poster
 
Posts: 75
Default Web query - unable to extract data

I am not getting data, is there any way to get data from web directly to
excel with help of macro or any other mode.

"Nigel" wrote:

When you say recorded, you must have actually gone through the process to
extract data, did that work?

--

Regards,
Nigel




"Vijay Kotian" wrote in message
...
Hi,

I have recorded a macro through which i would like to extract data from
web
but unable to do so. Can someone help me.

With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.bseindia.com/mktlive/market_summ/categorywise_turnover.asp",
_
Destination:=Range("A1"))
.Name = "categorywise_turnover"
.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 = "8"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With

Thank you.