- ©«¤l
- 4
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¹ü¤Æ
- µù¥U®É¶¡
- 2011-9-30
- ³Ì«áµn¿ý
- 2013-11-4
|
¥H¥«³õ¤Woffice¬Û®e³nÅé¡]Open Office¡ÄCalc ¡^¥´¶}Àɮ׫á¡A§Y¥i¬Ý¨ìµ{¦¡½X
¤]´N¬OMS Office Excel ±K½X¥\¯à¹ï¬Û®e³nÅé¡]Open Office¡^¬O¨S¦³¥Îªº
§Ú¹Á¸Õ¥´¶} Àò§Q«ü¼Ð.xls ¬Ý¨ì¥¨¶°«ü¥O¦p¤U
Rem Attribute VBA_ModuleType=VBAModule
Sub Module1
Rem Sub §ó·sӪѸê®Æ()
Rem On Error Resume Next
Rem Dim StockNum As String
Rem 0
Rem StockNum = Application.InputBox("½Ð¿é¤JӪѥN¸¹")
Rem If StockNum <> "" Then
Rem If Asc(StockNum) >= 48 And Asc(StockNum) <= 57 Then GoTo 1 '§P©w¬°¼Æ¦r´N¶i¦æ
Rem End If
Rem If StockNum = "False" Then GoTo 2 'Y¨ú®ø«h°h¥X
Rem MsgBox ("½Ð¿é¤JӪѥN¸¹")
Rem GoTo 0
Rem 1
Rem Sheets("IS").Select
Rem With Selection.QueryTable
Rem .Connection = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcqa/zcqa_" & StockNum & ".asp.htm"
Rem .WebSelectionType = xlSpecifiedTables
Rem .WebFormatting = xlWebFormattingNone
Rem .WebTables = "3"
Rem .WebPreFormattedTextToColumns = True
Rem .WebConsecutiveDelimitersAsOne = True
Rem .WebSingleBlockTextImport = False
Rem .WebDisableDateRecognition = False
Rem .WebDisableRedirections = False
Rem .Refresh BackgroundQuery:=False
Rem End With
Rem Selection.QueryTable.Refresh BackgroundQuery:=False
Rem
Rem Sheets("ISQ").Select
Rem With Selection.QueryTable
Rem .Connection = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcq_" & StockNum & ".asp.htm"
Rem .WebSelectionType = xlSpecifiedTables
Rem .WebFormatting = xlWebFormattingNone
Rem .WebTables = "3"
Rem .WebPreFormattedTextToColumns = True
Rem .WebConsecutiveDelimitersAsOne = True
Rem .WebSingleBlockTextImport = False
Rem .WebDisableDateRecognition = False
Rem .WebDisableRedirections = False
Rem .Refresh BackgroundQuery:=False
Rem End With
Rem Selection.QueryTable.Refresh BackgroundQuery:=False
Rem
Rem Sheets("«ü¼Ð¹Ïªí").Select
Rem 2
Rem End Sub
Rem
Rem
End Sub |
|