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

½Ð°Ý¦p¦ó±Nºô­¶ªº¹Ï¤ù¦sÀÉ

¦^´_ 1# flask
³ÌªñªÑ²¼¤½¶}ºô­¶¸ê°Tªº¤U¸ü,³£¦³ÅçÃÒ½X¨¾¤î¦Û°Ê¤U¸ü.
¥Ñ©óÅçÃÒ½X¤£¦n¯}¸Ñ,¥i¸Õ¸Õ¥b¦Û°Ê¤U¸ü
1½Ð¦b¤u§@ªí¤W´¡¤J¤@¹Ï¤ù(©R¦W:ÅçÃÒ¹Ï)
2¹Ï¤ù¥¨¶°«ü©w¬° ,Sheet1.¹Ï§Î§ó·s,³oµ{¦¡

¬°¨ÏVBA¤JªùªÌ,¦³¹ê§@¸gÅç,¬G¶Èªþ¤Wµ{¦¡½X.



ThisWorkbook¼Ò²Õªºµ{¦¡½X
  1. Option Explicit
  2. Private Sub Workbook_Open()
  3.     Sheet1.Msg = True
  4.     Run "Sheet1.¹Ï§Î§ó·s"
  5. End Sub
  6. Private Sub Workbook_BeforeClose(Cancel As Boolean)
  7.     On Error Resume Next
  8.     If Not Sheet1.IE Is Nothing Then Sheet1.IE.Quit
  9. End Sub
½Æ»s¥N½X
Sheet1¼Ò²Õªºµ{¦¡½X
  1. Option Explicit
  2. Public IE As Object, Msg As Boolean
  3. Const ¹Ï§Î = "d:\ÅçÃÒ¹Ï.jpg"
  4. Const ÃÒ¨é¥N¸¹ = "F2"
  5. Const ÅçÃÒ½X = "F4"
  6. Private Sub Worksheet_Change(ByVal Target As Range)
  7.     Range(ÃÒ¨é¥N¸¹).Interior.ColorIndex = IIf(Range(ÃÒ¨é¥N¸¹).Value = "", 2, 36)
  8.     With Target.Cells(1)
  9.          If .Address(0, 0) = ÅçÃÒ½X Then .Interior.ColorIndex = IIf(Len(Trim(.Cells)) = 5, 36, 2)
  10.          If .Address(0, 0) = ÅçÃÒ½X And Len(Trim(.Cells)) = 5 And Range(ÃÒ¨é¥N¸¹).Value <> "" Then
  11.             If IE Is Nothing Then
  12.                 Target = ""
  13.                 Msg = True
  14.                 ¹Ï§Î§ó·s
  15.                 Exit Sub
  16.             End If
  17.             Application.EnableEvents = False
  18.             ¤é³øªí¸ü¤J
  19.             Target = ""
  20.             Application.EnableEvents = True
  21.         End If
  22.     End With
  23. End Sub
  24. Private Sub ¤é³øªí¸ü¤J()
  25.     Dim e As Object, a As Object, K  As Integer, i As Integer, ii As Integer, s As String
  26.     If IE Is Nothing Then
  27.         ¹Ï§Î§ó·s
  28.         MsgBox "ÅçÃҹϤw§ó·s"
  29.         Exit Sub
  30.     End If
  31.     With IE
  32.         .Document.ALL.tags("INPUT")("stk_code").Value = Range(ÃÒ¨é¥N¸¹)
  33.         .Document.ALL.tags("INPUT")("auth_num").Value = Trim(Range(ÅçÃÒ½X))
  34.         Set a = .Document.ALL.tags("BUTTON")
  35.         For Each e In a
  36.             If Trim(e.innertext) = "¬d¸ß" And e.ID = "" Then
  37.             e.Click
  38.             Exit For
  39.             End If
  40.         Next
  41.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  42.         K = 6
  43.         UsedRange.Offset(6).Clear
  44.         If .Document.body.innertext Like "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***" Then s = "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***"
  45.         If .Document.body.innertext Like "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C***" Then s = "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C*** "
  46.         If s <> "" Then
  47.             Range("a" & K + 1) = s
  48.             MsgBox s
  49.             GoTo NN
  50.         End If
  51.         Set a = .Document.ALL.tags("table")(0)
  52.         For i = 0 To a.Rows.Length - 1
  53.             K = K + 1
  54.             For ii = 0 To a.Rows(i).Cells.Length - 1
  55.                 Cells(K, ii + 1) = a.Rows(i).Cells(ii).innertext
  56.             Next
  57.         Next
  58.         Set a = .Document.ALL.tags("table")(2)
  59.         K = K + 1
  60.         For i = 0 To a.Rows.Length - 1
  61.             K = K + 1
  62.             For ii = 0 To a.Rows(i).Cells.Length - 1
  63.                 Cells(K, ii + 1) = a.Rows(i).Cells(ii).innertext
  64.             Next
  65.         Next
  66.         Set a = .Document.ALL.tags("table")(3)
  67.         For i = 1 To a.Rows.Length - 1
  68.             K = K + 1
  69.             For ii = 0 To a.Rows(i).Cells.Length - 1
  70.                 Cells(K, ii + 1) = a.Rows(i).Cells(ii).innertext
  71.             Next
  72.         Next
  73.         MsgBox Range("d7") & " ¤é³øªí¸ü¤J §¹²¦!!"
  74. NN:
  75.         .Quit
  76.     End With
  77.     Set IE = Nothing
  78.     ¹Ï§Î§ó·s
  79. End Sub
  80. Private Sub Get_Ie()
  81.     Set IE = CreateObject("InternetExplorer.Application")
  82.     With IE
  83.        ' .Visible = True
  84.         '¨é°Ó¶R½æÃÒ¨é¤é³øªí¬d¸ß¨t²Î¡]¤@¯ë¥æ©ö¡^
  85.         .Navigate "http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/brokerBS.php?l=zh-tw"
  86.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  87.     End With
  88. End Sub
  89. Private Sub ¹Ï§Î§ó·s()
  90.     If IE Is Nothing Then Get_Ie
  91.     If Msg Then MsgBox "ÅçÃÒ¹Ï §ó·s§¹²¦"
  92.     Msg = False
  93.     With IE
  94.         .Refresh
  95.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  96.         ºô¸ô¹Ï¤ù¦sÀÉ .Document.ALL.tags("IMG")(0).href
  97.     End With
  98.     Sheet1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  99. End Sub
  100. Private Sub ºô¸ô¹Ï¤ù¦sÀÉ(img As String)
  101.     Dim xml As Object     '¥Î¨Ó¨ú±oºô­¶¸ê®Æ
  102.     Dim stream            'As ADODB.stream   '¥Î¨ÓÀx¦s¤G¶i¦ìÀÉ®×
  103.     Set xml = CreateObject("Microsoft.XMLHTTP")
  104.     Set stream = CreateObject("ADODB.stream")
  105.     xml.Open "GET", img, 0
  106.     xml.send
  107.     With stream
  108.         .Open
  109.         .Type = 1
  110.         .write xml.ResponseBody
  111.         If Dir(¹Ï§Î) <> "" Then Kill ¹Ï§Î
  112.         .SaveToFile (¹Ï§Î)
  113.         .Close
  114.     End With
  115. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 5# flask
µ{¦¡°õ¦æ¦p¹Ï



   
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-12-13 13:24 ½s¿è

¦^´_ 8# wufonna
³o¿ù»~¬O§A±N IEÃö³¬¤F
VBA«ö¤U­«³],­«·s°õ¦æµ{¦¡
  1. Private Sub Get_Ie()
  2.     Set IE = CreateObject("InternetExplorer.Application")
  3.     With IE
  4.        ' .Visible = True  *** ¤£Åã¥Ü´N¬O¨¾¤î¨Ï¥ÎªÌÃö³¬IE
  5.         '¨é°Ó¶R½æÃÒ¨é¤é³øªí¬d¸ß¨t²Î¡]¤@¯ë¥æ©ö¡^
  6.         .Navigate "http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/brokerBS.php?l=zh-tw"
  7.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  8.     End With
  9. End Sub
½Æ»s¥N½X


´¡¤Jªº¹Ï¤ù»Ý¨Ï¥Îø¹Ïªº¹Ï¤ù
  1. ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î
½Æ»s¥N½X
ªþÀÉ´¡¤Jªº¹Ï¤ù¨S§ï¦WºÙ ÅçÃÒ¹Ï
¤]¥i¥H¨Ï¥Î Shapes(¯Á¤Þ­È)->¦pShapes(1)
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 10# wufonna

§AªºªþÀÉ
´¡¤Jªº¹Ï¤ù»Ý¨Ï¥Îø¹Ïªº¹Ï¤ù
¤@¼Ë§AªºªþÀÉ ªº¹Ï¤ù¨S§ï¦WºÙ¬° "ÅçÃÒ¹Ï"
µ¹§A°£¿ùµ{¦¡½X
  1. Private Sub ¹Ï§Î§ó·s()
  2.    On Error GoTo ER
  3.     If IE Is Nothing Then Get_Ie
  4.     If Msg Then MsgBox "ÅçÃÒ¹Ï §ó·s§¹²¦"
  5.     Msg = False
  6.     With IE
  7.         .Refresh
  8.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  9.         ºô¸ô¹Ï¤ù¦sÀÉ .Document.ALL.tags("IMG")(0).href
  10.     End With
  11.     MsgBox ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Name
  12.    
  13.     ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  14.   Exit Sub
  15. ER:
  16.     MsgBox Err & vbLf & Err.Description
  17.     Stop
  18.     MsgBox ¤u§@ªí1.Shapes(1).Name
  19.     Resume
  20. End Sub

½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 12# wufonna
2010ª©ªº§ä¤£¨ì¹Ï¤ù¦p¦ó§ó¦W
¦p¹Ï ¨ì¦WºÙ¤è¶ô¤¤­×§ï






VBA­×§ï
  1. With ¤u§@ªí1
  2.     .Shapes(1).Name = "ÅçÃÒ¹Ï"
  3.     .Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  4. End With
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 15# HSIEN6001

­Y¤£¥Î¼g¤JExcel,¦Óª½±µ .Click ¤U¸üCSVÀÉ(BIG5) ÀÉ®×
¹ïIEªº¯AÂy©|²L§ä¤£¥X¤U¸üCSVÀɪº°Ñ¼Æ,¦³½Ð°ª¤â«üÂI

¸ü¤J¨ä¥L­¶¦¸
Dim IEx As Object  '¤u§@ªí¼Ò²Õ
  1. Private Sub ¤é³øªí¸ü¤J()
  2.     Dim e As Object, A As Object, k  As Integer, i As Integer, S As String
  3.     If IE Is Nothing Then
  4.         ¹Ï§Î§ó·s
  5.         MsgBox "ÅçÃҹϤw§ó·s"
  6.         Exit Sub
  7.     End If
  8.     With IE
  9.         .Document.all.tags("INPUT")("stk_code").Value = Range(ÃÒ¨é¥N¸¹)
  10.         .Document.all.tags("INPUT")("auth_num").Value = Trim(Range(ÅçÃÒ½X))
  11.         Set A = .Document.all.tags("BUTTON")
  12.         For Each e In A
  13.             If Trim(e.Innertext) = "¬d¸ß" And e.ID = "" Then
  14.             e.Click
  15.             Exit For
  16.             End If
  17.         Next
  18.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  19.         UsedRange.Offset(6).Clear
  20.         Range("a" & k + 1) = S
  21.         If .Document.body.Innertext Like "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***" Then S = "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***"
  22.         If .Document.body.Innertext Like "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C***" Then S = "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C*** "
  23.         If S <> "" Then
  24.             Range("a" & k + 1) = S
  25.             MsgBox S
  26.             GoTo NN
  27.         End If
  28.         Set IEx = CreateObject("InternetExplorer.Application")
  29.         IEx.Navigate "about:Tabs"
  30.         Set A = .Document.all.tags("A")
  31.         ³æ­¶¸ü¤J .Document.all.tags("table")(0).outerHTML
  32.         [A6].Select
  33.         '********µ{¦¡½X¼g¦b¤u§@ªí¼Ò²Õ: Me «ü³o¤u§@ªí¼Ò²Õ
  34.         Me.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
  35.         '****************************************
  36.         If A.Length = 459 Then
  37.             For i = 2 To 3
  38.                 ³æ­¶¸ü¤J .Document.all.tags("table")(i).outerHTML
  39.                 With Range("A" & Rows.Count).End(xlUp).Offset(1)
  40.                     .Select
  41.                     Me.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
  42.                 End With
  43.             Next
  44.         Else
  45.             For k = 0 To A.Length - 1
  46.                 If Val(A(k).Innertext) >= 1 Then
  47.                     Debug.Print A(k).Innertext
  48.                     A(k).Click
  49.                     Do While .Busy Or .readyState <> 4: DoEvents: Loop
  50.                     Set A = .Document.all.tags("A")
  51.                     Do While .Busy Or .readyState <> 4: DoEvents: Loop
  52.                     For i = 2 To 3
  53.                         ³æ­¶¸ü¤J .Document.all.tags("table")(i).outerHTML
  54.                         With Range("A" & Rows.Count).End(xlUp).Offset(1)
  55.                             .Select
  56.                             Me.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
  57.                         End With
  58.                     Next
  59.                 End If
  60.             Next
  61.         End If
  62.         IEx.Quit
  63.         Set IEx = Nothing
  64.         ¾ã²z
  65. NN:
  66.         .Quit
  67.     End With
  68.     Set IE = Nothing
  69.     ¹Ï§Î§ó·s
  70. End Sub
  71. Private Sub ³æ­¶¸ü¤J(S)
  72.     With IEx
  73.         .Document.body.innerHTML = S
  74.         .ExecWB 17, 2       '  Select All
  75.         .ExecWB 12, 2       '  Copy selection
  76.     End With
  77. End Sub
  78. Private Sub ¾ã²z()
  79.     On Error Resume Next
  80.     Application.EnableEvents = False
  81.     With UsedRange.Offset(10)
  82.         .Replace "§Ç¸¹", "=ex", xlWhole
  83.         .SpecialCells(xlCellTypeFormulas, xlErrors).EntireRow.Delete
  84.     End With
  85.     UsedRange(1).Select
  86.     Application.EnableEvents = True
  87. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-12-16 22:02 ½s¿è

¦^´_ 28# HSIEN6001
ÁÙ¦³ Workbooks.Open ¥i¥Î
  1. Option Explicit
  2. Public IE As Object, Msg As Boolean
  3. Const ¹Ï§Î = "d:\ÅçÃÒ¹Ï.jpg"
  4. Const ÃÒ¨é¥N¸¹ = "F2"
  5. Const ÅçÃÒ½X = "F4"
  6. Private Sub Worksheet_Change(ByVal Target As Range)
  7.     Range(ÃÒ¨é¥N¸¹).Interior.ColorIndex = IIf(Range(ÃÒ¨é¥N¸¹).Value = "", 2, 36)
  8.     With Target.Cells(1)
  9.          If .Address(0, 0) = ÅçÃÒ½X Then .Interior.ColorIndex = IIf(Len(Trim(.Cells)) = 5, 36, 2)
  10.          If .Address(0, 0) = ÅçÃÒ½X And Len(Trim(.Cells)) = 5 And Range(ÃÒ¨é¥N¸¹).Value <> "" Then
  11.             If IE Is Nothing Then
  12.                 Target = ""
  13.                 Msg = True
  14.                 ¹Ï§Î§ó·s
  15.                 Exit Sub
  16.             End If
  17.             Application.EnableEvents = False
  18.             '¤é³øªí¸ü¤J
  19.           CSV¸ü¤J
  20.             Target = ""
  21.             Application.EnableEvents = True
  22.         End If
  23.     End With
  24. End Sub

  25. Private Sub Get_Ie()
  26.     Set IE = CreateObject("InternetExplorer.Application")
  27.     With IE
  28.         .Visible = True
  29.         '¨é°Ó¶R½æÃÒ¨é¤é³øªí¬d¸ß¨t²Î¡]¤@¯ë¥æ©ö¡^
  30.         .Navigate "http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/brokerBS.php?l=zh-tw"
  31.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  32.     End With
  33. End Sub

  34. Private Sub ¹Ï§Î§ó·s()
  35.     If IE Is Nothing Then Get_Ie
  36.     If Msg Then MsgBox "ÅçÃÒ¹Ï §ó·s§¹²¦"
  37.     Msg = False
  38.     With IE
  39.         .Refresh
  40.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  41.         ºô¸ô¹Ï¤ù¦sÀÉ .Document.all.tags("IMG")(0).href
  42.     End With
  43.     Sheet1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  44. End Sub

  45. Private Sub ºô¸ô¹Ï¤ù¦sÀÉ(img As String)
  46.     Dim xml As Object     '¥Î¨Ó¨ú±oºô­¶¸ê®Æ
  47.     Dim stream            'As ADODB.stream   '¥Î¨ÓÀx¦s¤G¶i¦ìÀÉ®×
  48.     Set xml = CreateObject("Microsoft.XMLHTTP")
  49.     Set stream = CreateObject("ADODB.stream")
  50.     xml.Open "GET", img, 0
  51.     xml.send
  52.     With stream
  53.         .Open
  54.         .Type = 1
  55.         .write xml.responseBody
  56.         If Dir(¹Ï§Î) <> "" Then Kill ¹Ï§Î
  57.         .SaveToFile (¹Ï§Î)
  58.         .Close
  59.     End With
  60. End Sub

  61. Private Sub CSV¸ü¤J()
  62.     Dim e As Object, A As Object, kDate As String, S As String
  63.     Application.EnableEvents = True
  64.     If IE Is Nothing Then
  65.         ¹Ï§Î§ó·s
  66.         MsgBox "ÅçÃҹϤw§ó·s"
  67.         Exit Sub
  68.     End If
  69.     With IE
  70.         .Document.all.tags("INPUT")("stk_code").Value = Range(ÃÒ¨é¥N¸¹)
  71.         .Document.all.tags("INPUT")("auth_num").Value = Trim(Range(ÅçÃÒ½X))
  72.         Set A = .Document.all.tags("BUTTON")
  73.         For Each e In A
  74.             If Trim(e.Innertext) = "¬d¸ß" And e.ID = "" Then
  75.             e.Click
  76.             Exit For
  77.             End If
  78.         Next
  79.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  80.         If .Document.body.Innertext Like "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***" Then S = "***¸ÓªÑ²¼¸Ó¤éµL¥æ©ö¸ê°T***"
  81.         If .Document.body.Innertext Like "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C***" Then S = "***ÅçÃÒ½X¿ù»~¡A½Ð­«·s¬d¸ß¡C*** "
  82.         If S <> "" Then
  83.             'Range("a" & k + 1) = S
  84.             MsgBox S
  85.             GoTo NN
  86.         End If
  87.         kDate = Format(Date, "emmdd")
  88.         Application.DisplayAlerts = False
  89.         With Workbooks.Open("http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/download_ALLCSV.php?curstk=" & Range(ÃÒ¨é¥N¸¹) & "&stk_date=" & kDate & "&&auth=" & Range(ÅçÃÒ½X))
  90.             .SaveAs "D:\" & Range(ÃÒ¨é¥N¸¹)
  91.             With .Sheets(1)
  92.                 .UsedRange.Range("G:K").SpecialCells(xlCellTypeConstants).Offset(1).Copy .Cells(.Rows.Count, 1).End(xlUp).Offset(1)
  93.                 .UsedRange.Range("G:K").Clear
  94.             End With
  95.             .Close True
  96.         End With
  97.         Application.DisplayAlerts = True
  98.         MsgBox "ÃÒ¨é¥N¸¹ : " & Range(ÃÒ¨é¥N¸¹) & " CSV ¸ü¤J§¹²¦"
  99. NN:
  100.         .Quit
  101.     End With
  102.     Set IE = Nothing
  103.     ¹Ï§Î§ó·s
  104. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 32# HSIEN6001
  1.     '***** §PÂ_Ū¨ú¸ê®Æ  End *************************************************************
  2.             End If  '¨S¦³With ¤Ö³o End If
½Æ»s¥N½X
¦ý³oµ{¦¡©|¦³¯Ê¥¢»Ý­×§ï.

  1. Set Rng = [C:C].Find("NG", , , xlWhole)  '§ä¤£®Éªº³B¸m???
  2. For Each ¥N¸¹ In Range(Rng.Offset(0, -2), [E65536].End(xlUp)) '¶·¦b«e­±
  3.         With CreateObject("InternetExplorer.application") '¦bFor Each ¥N¸¹ °j°é¤º
  4.          
  5.          '¤Ö±¼¬d¸ß«öÁä
  6.          if ....
  7.          '³o¬q IF §PÂ_­n©ñ¦b
  8.        End If   

  9.        ¨S¦³dirÀˬd ¦sÀɤ§Àɮ׬O§_¦s¦b
  10.          .SaveToFile (path & ¥N¸¹ & ".csv")
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 34# HSIEN6001
  1.   With stream   '¦b³oWith¤U
  2.                .Type = 1
  3.                 .Open
  4.                 .write xml.responseBody
  5.                 '**** §PÂ_Ū¨ú¸ê®Æ   ****************************************************************
  6.                 If .document.body.Innertext Like "*¸Ó¤éµL¥æ©ö¸ê°T*" Then
  7.                  '*******  .document ¬OIEªº¤lª«¥ó******
  8.                     GoTo NN  'Goto ¤U¤@­Ó
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD