¦¹ºô¶¶×¤Jexcel, ¥¨¶°n«ç»ò§ï??
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-14
|
¦¹ºô¶¶×¤Jexcel, ¥¨¶°n«ç»ò§ï??
WEB
1
http://stock.chinatimes.com/asp/hot/ShortOperate.asp?lcount=30&m=puplim&align=v
Selection=7,11 ===========>¤£¹ï!???
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
--------------------------------------
With Sheets("º¦¶^°±")
.Cells = ""
.Cells(1, 1) = "º¦°±ÂꦺªÑ"
For Each i In Array(7, 11)
If i = 24 Then .Cells(1, "J") = "¶^°±ÂꦺªÑ"
Y = 2
For R = 0 To xlVbTable(i).Rows.Length - 1
For C = 0 To xlVbTable(i).Rows(1).ALL.Length - 1
.Cells(Y, C + IIf(i = 5, 1, 10)) = xlVbTable(i).Rows(R).Cells(C).innerText
'IIf(i = 5, 1, 10) -> 1:="A", 10:="J"
Next
Y = Y + 1
Next
If i = 5 Then .Rows(13).Delete '¶K¤W³sµ²ªºÀx¦s®æ¤´µM¬O#REF!->Àx¦s®æ³Q§R°£±¼
End With |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2013-12-6 15:19 ½s¿è
¸Õ¤F30¤À¤~¸Õ¥X¨Ó :-(
With Sheets("º¦¶^°±")
.Cells = ""
.Cells(1, 1) = "º¦°±ÂꦺªÑ"
For Each i In Array(6, 10)
If i = 10 Then .Cells(1, "J") = "¶^°±ÂꦺªÑ"
Y = 2
For R = 0 To xlVbTable(i).Rows.Length - 1
For C = 0 To xlVbTable(i).Rows(1).ALL.Length - 1
.Cells(Y, C + IIf(i = 6, 1, 10)) = xlVbTable(i).Rows(R).Cells(C).innerText
'IIf(i = 6, 1, 10) -> 1:="A", 10:="J"
Next
Y = Y + 1
Next
If i = 6 Then .Rows(13).Delete
If i = 6 Then .Rows(24).Delete
Next
End With |
|
|
|
|
|
|