- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28

|
§A¥i¥H¸Õ¸Õ¤@¥y¤@¥y¸Õ¸Õ¤F¸Ñ¤@¤U·N«ä- Sub GetTransInfo()
- Worksheets("sheet2").Activate
- Call ¨é°Ó¶i¥X("2885", "sheet2", "A1")
- 'Call ¨é°Ó¶i¥X("2409", "sheet2", "A60")
- End Sub
- Sub ¨é°Ó¶i¥X(stock As String, tsheet As String, tcell As String)
- '"all&stockid",
- Call ¨é°Ó¶i¥X2("8,10,11", stock, tsheet, tcell)
- End Sub
- '(all&stockid,
- Sub ¨é°Ó¶i¥X2(tbl As String, stock As String, tsheet As String, tcell As String)
- With Worksheets(tsheet).QueryTables.Add(Connection:="URL;http://yamstock.megatime.com.tw/asp/stockinfo/ps_top.asp?m=all&stockid=" & _
- stock & "&name1=D2&index1=6", _
- Destination:=Worksheets(tsheet).Range(tcell))
- .Name = all & "_" & stock
- .FieldNames = True
- .FieldNames = True
- .RowNumbers = False
- .FillAdjacentFormulas = False
- .PreserveFormatting = True
- .RefreshOnFileOpen = False
- .BackgroundQuery = False
- .RefreshStyle = xlOverwriteCells
- .SavePassword = False
- .SaveData = True
- .AdjustColumnWidth = True
- .RefreshPeriod = 0
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = tbl
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- .Refresh BackgroundQuery:=False
- End With
- End Sub
½Æ»s¥N½X |
|