- ©«¤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
|
¦^´_ 2# smart3135
¸Õ¸Õ¬Ý- Option Explicit
- Sub §ì©u·l¯qªí¸ê®Æ()
- Dim Rng As Range, AR(), URL As String, E As Variant
- For E = Sheets.Count To 2 Step -1
- Sheets(E).Delete '¤u§@ªí§R°£
- Next
- AR = Array(2303, 2485, 2030)
- Sheets(1).Range("A1:A3") = Application.WorksheetFunction.Transpose(AR)
- Set Rng = Sheets(1).Range("A1:A3")
- For Each E In Rng '°j°é Àx¦s®æ
- ' For Each E In AR '°j°é ¤]¥i¥H¥Î°}¦C
- With Sheets.Add(, Sheets(1)) '·s¼W¤u§@ªí
- .Name = E
- URL = "URL;https://djinfo.cathaysec.com.tw/Z/ZC/ZCQ/ZCQ.DJHTM?A=" & E
- With .QueryTables.Add(Connection:=URL, Destination:=.Range("$A$1"))
- .Name = "ZCQ.DJHTM?A=" & E
- .PreserveFormatting = True
- .BackgroundQuery = True
- .RefreshStyle = xlInsertDeleteCells
- .SaveData = True
- .AdjustColumnWidth = True
- .RefreshPeriod = 0
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = "3"
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .Refresh BackgroundQuery:=False
- End With
- End With
- Next
- End Sub
½Æ»s¥N½X |
|