- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-5-22 15:02 ½s¿è
¦^´_ 5# stillfish00
TextFileStartRow ¶·¬O¶×¤J¤å¦rÀÉ,³oºô¶¤£¾A¥Î
¦^´_ 3# freeffly
¦^´_ 4# seemee - Option Explicit
- Sub Ex()
- With ActiveSheet
- With .QueryTables.Add(Connection:="URL;http://www.taifex.com.tw/chinese/3/3_2_2.asp", Destination:=[A1])
- '********** .WebSelectionType ¦³3ӰѼƼÆÈ *************
- If .Parent.QueryTables.Count = 1 Then
- .WebSelectionType = xlEntirePage '¶×¤J¾ãÓºô¶
- ElseIf .Parent.QueryTables.Count = 2 Then
- .WebSelectionType = xlAllTables '¶×¤Jºô¶©Ò¦³ªºªí®æ
- ElseIf .Parent.QueryTables.Count >= 3 Then
- .WebSelectionType = xlSpecifiedTables '¶×¤J«ü©wªººô¶ªºªí®æ
- .WebTables = "3" '¶×¤J«ü©w²Ä3Óªí®æ '=xlSpecifiedTables ¤~¥i¥Î¦¹°Ñ¼Æ
- End If
- '************************************************************
- .WebFormatting = xlWebFormattingNone
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- .Refresh BackgroundQuery:=False
- End With
- MsgBox "²Ä" & .QueryTables.Count & "Web ¬d¸ß ºô§}" & .QueryTables(.QueryTables.Count).Connection
- End With
- End Sub
½Æ»s¥N½X |
|