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

[µo°Ý] ¬¡­¶Ã¯³s½u

[µo°Ý] ¬¡­¶Ã¯³s½u

·Q½Ð±Ð¦U¦ì §Ú¦Û¤v°Ñ¦Òª©¤W¸ê®Æ¼g¤F´X­Ó²³æªº¬d¸ßªÑ²¼µ{¦¡¡A
°ÝÃD¨Ó¤F¡A§Ú¨C«ö¬d¸ß¤@¦¸¡A¦p¹Ïªº¬¡­¶Ã¯³s½u´N·|¦h¤@µ§¡A
µ¥®t¤£¦h10´Xµ§ªº®É­Ô¡A¨C¦¸³Ì«á«öÀx¦sÂ÷¶}®É¡Aexcel´N·í¾÷
¡A
©Ò¥H§Ú¨C¦¸Àx¦s«e³£­n¤â°Ê§R°£©Ò¦³³s½u¡A
¤£ª¾¦³µL»yªk¥i¥H¨C¬d¸ß¤@¦¸´N§R°£¸Ó¬¡­¶Ã¯³s½u? ÁÂÁ¦U¦ì :Q

  1. Sub °]°È¤ñ²v()
  2.    
  3.     Call StockNo
  4.     Dim URL As String
  5.    
  6.    
  7.     'X As String
  8.     'X = Worksheets("À禬").Range("A2")
  9.    
  10.     URL = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcra_" & ªÑ²¼¥N¸¹ & ".djhtm"
  11.    
  12.     With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=ActiveSheet.Range("K68"))
  13.         .TablesOnlyFromHTML = True
  14.         .RefreshStyle = xlOverwriteCells
  15.         .WebSelectionType = xlSpecifiedTables
  16.         .WebFormatting = xlWebFormattingNone
  17.         .AdjustColumnWidth = False
  18.         .WebTables = "1"
  19.         .WebPreFormattedTextToColumns = True
  20.         .WebConsecutiveDelimitersAsOne = True
  21.         .WebSingleBlockTextImport = False
  22.         .WebDisableDateRecognition = False
  23.         .WebDisableRedirections = False
  24.         .Refresh BackgroundQuery:=False
  25.         Cells.Hyperlinks.Delete
  26.     End With
  27.     'Cells.Hyperlinks.Delete
  28. End Sub

  29. Private Sub CommandButton1_Click()
  30. 'StockNo
  31. °]°È¤ñ²v
  32. End Sub
½Æ»s¥N½X

¦^´_ 1# leoncc
.Refresh BackgroundQuery:=False
.delete

TOP

¦^´_ 2# stillfish00

ÁÙ¬O¤£¦æ­C..¨C°õ¦æ³s½uÁÙ¬O«ùÄò¼W¥[¤¤...

TOP

²×©ó§ä¨ì¤F ÁÂÁ¡A¤èªk¦p¤U:
  1. Sub §R°£³s½u()

  2. For i = 1 To ActiveWorkbook.Connections.Count
  3. If ActiveWorkbook.Connections.Count = 0 Then Exit Sub
  4. ActiveWorkbook.Connections.Item(i).Delete
  5. i = i - 1
  6. Next i

  7. End Sub
½Æ»s¥N½X
°õ¦æButton Click®É¦A¥[¤J¤U»yªk´N·d©w¤F:
  1. Private Sub CommandButton1_Click()

  2. °]°È¤ñ²v
  3. §R°£³s½u
  4. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# leoncc
½T©w¶Ü?  
§A¥ý¥þ³¡³s½u§R°£
¦A´¡¤J24¦æ«á­±¸Õ..

TOP

¦^´_ 5# stillfish00


    ¬Oªº §Ú¤â°Ê¥þ³¡§R°£³s½u«á´ú¸Õ¡A°õ¦æ«áÁÙ¬O¦³¶]¥X¨Ó....¹ï¤F§Úªº¬O2010ª©¥»ªº ·P®¦¤¤...

  1. Sub °]°È¤ñ²v()
  2.    
  3.     Call StockNo
  4.     Dim URL As String
  5.    
  6.    
  7.     'X As String
  8.     'X = Worksheets("À禬").Range("A2")
  9.    
  10.     URL = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcra_" & ªÑ²¼¥N¸¹ & ".djhtm"
  11.    
  12.     With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=ActiveSheet.Range("K68"))
  13.         .TablesOnlyFromHTML = True
  14.         .RefreshStyle = xlOverwriteCells
  15.         .WebSelectionType = xlSpecifiedTables
  16.         .WebFormatting = xlWebFormattingNone
  17.         .AdjustColumnWidth = False
  18.         .WebTables = "1"
  19.         .WebPreFormattedTextToColumns = True
  20.         .WebConsecutiveDelimitersAsOne = True
  21.         .WebSingleBlockTextImport = False
  22.         .WebDisableDateRecognition = False
  23.         .WebDisableRedirections = False
  24.         .Refresh BackgroundQuery:=False
  25.          Cells.Hyperlinks.Delete
  26.         .Delete
  27.       
  28.     End With
  29.     'Cells.Hyperlinks.Delete
  30. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# leoncc
§Aªº StockNo ¬O¤£¬O¤]¦³·s¼W³s½u?
§Ú¤]¬OExcel 2010¡A©³¤U³o¼Ë¬O¨S°ÝÃDªº
  1. Sub °]°È¤ñ²v()
  2.     Dim URL As String
  3.    
  4.     URL = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcra_" & 1101 & ".djhtm"
  5.    
  6.     With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=ActiveSheet.Range("K68"))
  7.         .TablesOnlyFromHTML = True
  8.         .RefreshStyle = xlOverwriteCells
  9.         .WebSelectionType = xlSpecifiedTables
  10.         .WebFormatting = xlWebFormattingNone
  11.         .AdjustColumnWidth = False
  12.         .WebTables = "1"
  13.         .WebPreFormattedTextToColumns = True
  14.         .WebConsecutiveDelimitersAsOne = True
  15.         .WebSingleBlockTextImport = False
  16.         .WebDisableDateRecognition = False
  17.         .WebDisableRedirections = False
  18.         .Refresh BackgroundQuery:=False
  19.          Cells.Hyperlinks.Delete
  20.         .Delete
  21.       
  22.     End With
  23. End Sub
½Æ»s¥N½X

TOP

¦^´_ 7# stillfish00

§Ú§â"ªÑ²¼¥N¸¹"®³±¼ StockNO¤]®³±¼ ª½±µ©ñ¤JªÑ²¼ªº¥N¸¹ ³s½uÁÙ¬O¦³­C:'(   ÁÂÁÂ
  1. Sub °]°È¤ñ²v()
  2.    
  3.     'Call StockNo
  4.     Dim URL As String
  5.    
  6.    
  7.     'X As String
  8.     'X = Worksheets("À禬").Range("A2")
  9.    
  10.     URL = "URL;http://dj.mybank.com.tw/z/zc/zcq/zcra_" & 1101 & ".djhtm"
  11.    
  12.     With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=ActiveSheet.Range("K68"))
  13.         .TablesOnlyFromHTML = True
  14.         .RefreshStyle = xlOverwriteCells
  15.         .WebSelectionType = xlSpecifiedTables
  16.         .WebFormatting = xlWebFormattingNone
  17.         .AdjustColumnWidth = False
  18.         .WebTables = "1"
  19.         .WebPreFormattedTextToColumns = True
  20.         .WebConsecutiveDelimitersAsOne = True
  21.         .WebSingleBlockTextImport = False
  22.         .WebDisableDateRecognition = False
  23.         .WebDisableRedirections = False
  24.         .Refresh BackgroundQuery:=False
  25.         Cells.Hyperlinks.Delete
  26.         .Delete
  27.         
  28.     End With
½Æ»s¥N½X

TOP

¦^´_ 8# leoncc
§A°õ¦æ#8¼Ó
°õ¦æ¤T¦¸·|¦³¤T­Ó³s½u?

TOP

¦^´_ 9# stillfish00


    ¬Oªº ·|¤£·|¬O§Úªºexcel¦³°ÝÃD­n­«Äéªü ?

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD