- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 4# mnsmrtl - Sub ·s¼W¬d¸ß()
- Range("A1") = "2610" 'ªÑ²¼¥N¸¹
- Range("A3").Select
- With ActiveSheet.QueryTables.Add(Connection:= _
- "URL;http://tw.stock.yahoo.com/q/q?s=" & Range("a1"), Destination:=Selection) '·s¼W¬d¸ß
- .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"
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- .Refresh BackgroundQuery:=False
- .Name = .ResultRange.Cells(3, 1)
- End With
- End Sub
- '***** ¤w·s¼W«á¬d¸ß«á ¥iקïA1ªºªÑ²¼¥N¸¹ ¬d¸ß *****
- Sub §ó·s¬d¸ß()
- With Range("A3").QueryTable
- .Connection = "URL;http://tw.stock.yahoo.com/q/q?s=" & Range("a1") 'ªÑ²¼¥N¸¹¦b[A1]
- .Refresh BackgroundQuery:=False
- .Name = .ResultRange.Cells(3, 1)
- End With
- End Sub
½Æ»s¥N½X |
|