¨Ï¥ÎVBA§ì¨úºô¶¸ê®Æ¡A¤j¬ù¤£¨ì200¶´N·|·í±¼¡A¨D¸Ñ
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¨Ï¥ÎVBA§ì¨úºô¶¸ê®Æ¡A¤j¬ù¤£¨ì200¶´N·|·í±¼¡A¨D¸Ñ
¦U¦ì¤j¤j¡A¤p§Ì§Ú¥Ø«e¹J¨ì¤@Ó¦Û¤v¯à¤OµLªk¸Ñ¥Xªº°ÝÃD¡AÁÙ±æ¦U¦ì¤j¤jª¾¹D«ç»ò¸Ñ¨Mªº§iª¾¤p§Ì¡A·PÁ±z¡C
¥Ø«en§ì¨ú¬Y®a¤½¥q©ñ¦bºô¸ô¤Wªº¹s¥ó¸ê®Æ¡A¤j¬ù4¸U¦h¶¡A¥un¶]¤j¬ù200¥ª¥k´N·|·í¾÷¡A¤£ª¾¹D¬O¤°»ò°ÝÃD¡A¤p§Ì¦³©ñ¤Wµ{¦¡¡AÁٽЦU¦ì¤j¤j¨ó§U¡A·PÁ±z¡C |
-
-
§ìºô¶¸ê®Æµ{¦¡_W.zip
(101.26 KB)
µ{¦¡ÀÉ®×
|
clio
|
|
|
|
|
- ©«¤l
- 361
- ¥DÃD
- 57
- ºëµØ
- 0
- ¿n¤À
- 426
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003,2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2022-12-8
|
¦^´_ 1# clio
Sub ¥¨¶°1()
Cells.Clear
SURL = "URL;http://www.passivecomponent.com/asp/search_chip.aspx?page2"
Set myQT = ActiveSheet.QueryTables.Add(Connection:=SURL, Destination:=Range("$A$1"))
With myQT
.WebFormatting = xlWebFormattingNone
.Refresh BackgroundQuery:=False
.Delete
End With
SET MYQT=NOTHING
End Sub
¶¼Æ¦Û¤v´« |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 2# joey0415
HI Joey0415,
´ú¸Õ¹L¡A³o¼Ë§ó¦´N·í±¼¤F»¡¡K |
|
clio
|
|
|
|
|
- ©«¤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
|
¦^´_ 3# clio
¨S¦³§Oªººô§}¥i¤U¸ü¶Ü?
´ú¨ì1500¶¶]ªñ10¤ÀÄÁ, 40377 ¶n¶]«Ü¤[½Ð¦Û¤v´ú¸Õ- Option Explicit
- Sub Ex()
- Dim Sh(1 To 2) As Worksheet, q As QueryTable, i As Long, Rng As Range
- Dim xTime As Date
- With ThisWorkbook
- Set Sh(1) = .Sheets(1)
- Set Sh(2) = .Sheets(2) '**.Sheets("¤u§@ªí3")
- End With
- With Sh(1)
- '****³o¬q¬On§R°£¤u§@ªí1¤W¦³¤Ó¦hªº QueryTable (·|·í¥i¯à¬O¦b³o)****
- For Each q In .QueryTables
- q.Delete
- Next
- '****³o¬q¬On§R°£¤u§@ªí1¤WQueryTableªº¦WºÙ
- For i = .Names.Count To 1 Step -1
- .Names.Item(i).Delete
- Next
- '**³]©w§Aªº¥~³¡¬d¸ß¦b©T©wªºQueryTable¤W
- If .QueryTables.Count > 0 Then
- Set q = .QueryTables(1)
- Else
- Set q = .QueryTables.Add(Connection:="URL;http://www.passivecomponent.com/asp/search_chip.aspx?page=1" _
- , Destination:=.[A1])
- End If
- End With
- xTime = Time
- Application.ScreenUpdating = False
- For i = 1 To 40377
- With q
- .Connection = "URL;http://www.passivecomponent.com/asp/search_chip.aspx?page=" & i
- .WebFormatting = xlNone
- .RefreshStyle = xlInsertDeleteCells
- .AdjustColumnWidth = True
- .Refresh BackgroundQuery:=False
- DoEvents
- Set Rng = .ResultRange '**¥~³¡¬d¸ßªº¸ê®Æ°Ï
- If i = 1 Then
- Sh(2).UsedRange.Clear
- Sh(2).Range("A1").Resize(Rng.Rows.Count, Rng.Columns.Count) = Rng.Value
- Else
- Sh(2).Range("A" & Sh(2).Cells(Rows.Count, 1).End(xlUp).Row + 1).Resize(Rng.Rows.Count, Rng.Columns.Count) = Rng.Offset(1).Value
- End If
- End With
- Application.StatusBar = "¤U¸ü¶}©l: " & xTime & " ¦@ " & i & " ¶ ok " & Application.Text(Time - xTime, ["m¤Às¬í"])
- Next
- Application.ScreenUpdating = True
- MsgBox Application.Text(Time - xTime, ["m¤Às¬í"]) & " Finish"
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 361
- ¥DÃD
- 57
- ºëµØ
- 0
- ¿n¤À
- 426
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003,2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2022-12-8
|
¦^´_ 3# clio
§Ú¤]´ú¸Õ¹L®@¡I¤T¤ÀÄÁ¤U¸ü300¶¨S¦³°ÝÃD
«Ü¶¶ |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 5# joey0415
Hi Joey0415,
¯à§_¤]§â±zªº§¹¾ãµ{¦¡¡AÅý§Ú¨Ó¬ã¨s¤@¤U¡A¬Ý¬O®t§O¦b¨ºÃä¡A¬°¤°»ò§Úªº·|·í±¼¡AY¬O¤è«Kªº¸Ü¡A·PÁ±z¡C |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 4# GBKEE
·PÁÂGBKEE,
«ôŪ¤F±zªºµ{¦¡¡A§Ú¤j¬ùª¾¹D§Ú¥d¦b¨ºÓ¦a¤è¤F¡A¦Ó¥B©pªº¼¶¼g¤è¦¡¡AÅý§Ú¨ü¥Î«Ü¦h¡A¤Ó·PÁ±z¤F
§Ú¤j¬ùª¾¹D¸Ó¸Óªí³æªºQueryTables¤Ó¦h¤F¡A¦³¤¦Ê¦hÓ¡AÃø©Ç·|¥d¦í¡A©Ò¥H§Ú¤F¸Ñn§âQueryTales¬å±¼ªºì¦]¤F
¦ý¬O¬°¤°»ò·|¦³³o¼Ë¦hªºNames¡A¦Ó¥B§â³o¨ÇNames¬å±¼ªº¦n³B¬O¡A¤°»ò¡A³oÂI§Ú¤£¤Ó²M·¡¡A¯à§_½ÐGBKEEÀ°§Ú¸Ñ»¡¤@¤U©O¡H
·PÁ±z |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 8# GBKEE
¤F¸Ñ¤F¡A·PÁÂGBKEE¡A©Ò¥H§â©Ò¦³ªºQueryTable§R±¼¡A¥u¯d¤U¤@Ó¡A¨Ã§Q¥Î°j°é§ïÅÜqªºconnectionÈ¡A´N¤£·|ÅýQueryTableªº¼Æ¶q¤@ª½¼W¥[¡A³o¼Ë¤]¤£·|¹³§Úì¨Óªºµ{¦¡¤@¼Ë¡A¦]¬°QueryTable¶W¹L¤@©wªº¼Æ¶q¡A³y¦¨·í±¼¡A³o¼Ë§Ú´N¥þ²z¸Ñ¤F¡A·PÁ±zªº@¤ß¸Ñ»¡ |
|
clio
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
¦^´_ clio
ÀÉ®×½G¨
QueryTable ,Name¤Ó¦hÀÉ®×·|µêD,§A¤@ª½ªº¦sÀɰʧ@,·|³Ý¦º.
GBKEE µoªí©ó 2018-10-9 12:55
³oÓ¤ñ³ë¯u¦n... ½s¼gµ{¦¡®É «Ü¦h³£¥u¦b·N³t«× ½T³s¤£¥Î¥á¶i°j°éªº¤]¥á¶i¥h ¾ÉP¤@Ó©T©wÈ ³Q°õ¦æN¦¸ .... |
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|