ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¬°¤°»ò³o­ÓÀɮץΰ_¨Ó³o»òºC.....

¬°¤°»ò³o­ÓÀɮץΰ_¨Ó³o»òºC.....

¥»©«³Ì«á¥Ñ color790 ©ó 2011-10-28 23:13 ½s¿è

¦Û¤v©é©é¶K¶K¦Ó¦¨ªºÀÉ®×, ¥u¬O.....«ç»ò¶V¥Î¶VºC
¤£ª¾¹D­þ¸Ì¦³°ÝÃD, ±æ¤j®aÀ°­Ó¦£:dizzy:
ªì¾ÇªÌcolor

¥»©«³Ì«á¥Ñ luhpro ©ó 2011-10-26 21:05 ½s¿è

¦^´_ 1# color790
ÀÉ®×Ū°_¨Ó½T¹ê«ÜºC,
¤@¯ë¨Ó»¡­YÀÉ®×¥»¨­¨Ã¤£¤j©Ò¥H¤£À³¸Ó¥X²{¦¹±¡§Î®É,
¥i¥H¦Ò¼{±N¤º®e¥þ³¡³£·h²¾¨ì¥t¤@­Ó·s«Ø¥ßªºExcelÀÉ®×,
·íµM¤£·|¬O¾ã­ÓÀÉ®×¥þ³¡·Ó·h,
¨º¼Ë°ÝÃDÁÙ¬O·|¦s¦b¦Ó¨S¦³¸Ñ¨M.

§Ú¸û±`¨Ï¥Îªº¤èªk¬O :
1. ¤À§O°w¹ï¦U­Ó Sheet °õ¦æ -> ²¾°Ê©Î½Æ»s -> ±N«Ø¥ß°Æ¥»¥´¤Ä -> ¥Ø¼Ð¿ï·s¬¡­¶Ã¯ ½T»{¦¹°Ê§@ªº®É¶¡¬O§_¸ûªø,
¥H§PÂ_¤ò¯fÀ³¸Ó¬O¦b­þ´X­Ó Sheet ¤W,
½T»{«á½Ð°O±oÃö³¬(¨Ã¿ï¤£­nÀx¦s)·s¶}ªº Excel ¬¡­¶Ã¯ÀÉ®×. (¥»¨Ò¤¤§Úµo²{ tmp »P tmp2 ¨â­Ó Sheet ©úÅãŪ¨ú®É¶¡¹Lªø)

2. ¨S°ÝÃDªº Sheet ª½±µ½Æ»s¨ì·sªº Excel Àɤº.

3. ¦Ó¹ï©ó¦³°ÝÃDªº Sheet «hµ½¥Î "½Æ»s -> ¿ï¾Ü©Ê¶K¤W",
¥u½Æ»s¹L¨Ó¦³¸ê®ÆªºÀx¦s®æ¤Î¨ä®æ¦¡´N¦n(¸ê®Æ»P®æ¦¡¦@¨â¦¸¤À§O¶K¤W, ¥BÀ³ÁקK¿ï¾ã¦C©Î¾ãÄæ),
¨S¸ê®Æªºª½±µ±Ë±ó.

4. ±Nµ{¦¡¤º®e¤å¦r¤À§O Copy ¨ì»P¨ä¬Û¹ïÀ³ªºµ{¦¡°Ï¶ô¤º.

³Ì«á¥t¦s·sÀɧY¥i.

©³¤U¬O§Ú¨Ì¤W­z¤è¦¡­«°µ¹LªºÀÉ®×,
§A¬Ý¬Ý¬O§_²Å¦X§Aªº»Ý¨D.
123-Rebuild.zip (113.91 KB)

TOP

­ì¨Ó¦³­°ªº¤èªk.....¤ÓÁÂÁÂluhproªºÀ°¦£ ^^
¥u¬O«Ü©_©Ç, «ç³o¨â­Ó¤u§@­¶·|­°
¨ä¤¤¤@­Ó¤u§@­¶µ{¦¡½X¦p¤U...¬O­þ­Ó³¡¥÷¥X¿ù¤F¶Ü?

For i = 3 To Worksheets("¥N½X").[a65536].End(xlUp).Row
num = Worksheets("¥N½X").Cells(i, 1)
Worksheets("tmp").Range("A:Z").ClearContents


With Worksheets("tmp").QueryTables.Add(Connection:="URL;http://jsjustweb.jihsun.com.tw/z/zc/zcl/zcl_" & num & ".asp.htm" _
    , Destination:=Worksheets("tmp").Range("A1"))

    .Name = ""
    .FieldNames = True
    .RowNumbers = False
    .FillAdjacentFormulas = False
    .PreserveFormatting = True
    .RefreshOnFileOpen = False
    .BackgroundQuery = True
    .RefreshStyle = xlInsertDeleteCells
    .SavePassword = False
    .SaveData = True
    .AdjustColumnWidth = True
    .RefreshPeriod = 0
    .WebSelectionType = xlEntirePage
    .WebFormatting = xlWebFormattingNone
    .WebPreFormattedTextToColumns = True
    .WebConsecutiveDelimitersAsOne = True
    .WebSingleBlockTextImport = False
    .WebDisableDateRecognition = False
    .WebDisableRedirections = False
    .Refresh BackgroundQuery:=False
End With
ªì¾ÇªÌcolor

TOP

¦^´_ 3# color790

ÀɮקڬO®Ú¥»¶}¤£°_¨Ó
¤£¹L¥ú¬O§A³o­Óµ{¦¡½X
§A­n¤U¸ü©Ò¦³¥N½Xªº¸ê®Æ´N¥²¶·ªá¶O¬Û·íªøªº®É¶¡
¦Ü©ó­Y¦³¨ä¥L­pºâªº¸Ü
¨º§ó¤£¥Î»¡ªÖ©w·|ºCªº
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ color790 ©ó 2011-10-26 22:24 ½s¿è
¦^´_  color790

ÀɮקڬO®Ú¥»¶}¤£°_¨Ó
¤£¹L¥ú¬O§A³o­Óµ{¦¡½X
§A­n¤U¸ü©Ò¦³¥N½Xªº¸ê®Æ´N¥²¶·ªá¶O¬Û·íªø ...
Hsieh µoªí©ó 2011-10-26 21:30



   °õ¦æ¬O­nªá¤@¬q®É¶¡, ¦ý­è¶}ÀÉ®×ÁÙ¨S°õ¦æ«eÀÉ®×´N«ÜºC, ¤ñ¦p´å¼Ð­n¿ïA1, ­n4,5¬í¤~·|ÂI¨ì
  ¦Ó¥B¥»¨ÓÀÉ®×¥»¨Ó¥u¦³´X¦ÊK, °õ¦æ¹L´X¦¸«á´NÅÜ2ÂI¦hMb, ¦Ó¥B³o¨â­Ó¤u§@­¶¥u¬O¼È¦s, ¤]³£¦³°õ¦æ¥H¤U,
Worksheets("tmp").Range("A:Z").ClearContents
ÁÙ¬O»¡ClearContents µLªk¯uªº²M°£°®²b,¦Ó³y¦¨Àɮ׶V¨Ó¶VºC?????
(§â³o¨â­Ó¤u§@­¶§R°£¦A­«·s¥[¤J, ´N¤SÅܶ¶«Ü¦h)
ªì¾ÇªÌcolor

TOP

ÁקK³]¸m¤£¥²­nªº®æ¦¡
¦pÀx¦s®æ¶ñº¡ÃC¦â·|ÅýÀÉ®×ÅܱoªÎ¤j¡C

TOP

¥»©«³Ì«á¥Ñ diabo ©ó 2011-10-27 15:52 ½s¿è

¦^´_ 1# color790

Querytabe ¥Î§¹­n§R°£.....¤£µM·|¶V¨Ó¶VªÎ.....

¨ì tmp ©Î tmp 2¤u§@ªí¡A«ö¤@¤U¡u¦WºÙ¤è¶ô¡v¤U©Ô¿ï³æ....´N·|¬Ý¨ì¦³ ¦n´X¦Êªº....

¥~³¡¸ê®Æ_1
¥~³¡¸ê®Æ_2
¥~³¡¸ê®Æ_3
....
.....
diabo

TOP

¦^´_ 1# color790

¥Î³o­Ó²M¤@¤U¤£­nªºQueryTable
  1. Sub DeleteTmpQueryTable()

  2.     Dim QT As QueryTable
  3.     For Each QT In Sheets("tmp").QueryTables
  4.         Debug.Print QT.Name
  5.         QT.Delete
  6.     Next
  7.     For Each QT In Sheets("tmp2").QueryTables
  8.         Debug.Print QT.Name
  9.         QT.Delete
  10.     Next

  11. End Sub
½Æ»s¥N½X
diabo

TOP

¦^´_  color790

¥Î³o­Ó²M¤@¤U¤£­nªºQueryTable
diabo µoªí©ó 2011-10-27 15:58


¥H«e±q¨Ó¤£ª¾¹D¦³³o­Ó¦a¤è, ¤Ó·PÁ¤F
¦A½Ð°Ý¤@¤U,QueryTable ¤°»ò®É­Ô·|¦³¹³³o¼Ë²Ö¿nªº²{¶H
ªì¾ÇªÌcolor

TOP

¦^´_ 9# color790


    ¨C¬d¤@¦¸´N·|²Ö¿n¤@¦¸¡A¥i¥[°Ñ¼Æ§R°£¤§...
diabo

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD