| ©«¤l254 ¥DÃD6 ºëµØ0 ¿n¤À310 ÂI¦W0  §@·~¨t²ÎW10 ³nÅ骩¥»Excel 2016 ¾\ŪÅv20 ©Ê§O¨k ¨Ó¦Û¥xÆW µù¥U®É¶¡2019-6-16 ³Ì«áµn¿ý2025-6-21 
 | 
                
| ¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2021-1-27 22:23 ½s¿è 
 ¦^´_ 1# ggrip
 
 ¦³ªÅÀ°§Ú¸Õ¸Õ¬Ý   ·PÁÂ
 §Æ±æ¦³«e½úÌ¥i¥HÀ°§Úºë²¤@¤U ¦]¬°µ{¦¡½X¤Óªø¤F.....·Q¤£¥X¨Ó¦p¦óºë²...¦]¬°¤p§ÌÁÙ¦b¾Ç²ß¤¤§Æ±æ¯à°÷¦³§ó¦nªº¼gªk ¸U¤À·PÁ½ƻs¥N½XDim K As Boolean
Public Sub §ó·sºô¶½m²ß()
 
    Set IE = CreateObject("internetexplorer.application")
        IE.Visible = True
        IE.Navigate "www.google.com.tw"
        Do While IE.readyState <> 4 Or IE.Busy: DoEvents: Loop
        Application.Wait Now + TimeValue("00:00:01")
        Call p®É¾¹
                 
End Sub
Sub ¶}©lp®É()
    Application.ScreenUpdating = False
    On Error Resume Next
    Application.OnTime Now + TimeValue("00:00:03"), "p®É¾¹"
    
    If K = 1 Then Call Ãö³¬p®É¾¹
        Set Sh = CreateObject("Shell.Application")
        For n = Sh.Windows.Count To 1 Step -1
            Set IE = Sh.Windows(n - 1)
            If Right(UCase(IE.FullName), 12) = "IEXPLORE.EXE" Then
                If IE.document.Url Like "*www.google.com.tw*" Then
                    IE.refresh
                Exit For
                End If
            End If
        Next n
        
    On Error GoTo 0
    Application.ScreenUpdating = True
End Sub
Sub p®É¾¹()
    Application.ScreenUpdating = False
    On Error Resume Next
    
        If K <> 1 Then
            Call ¶}©lp®É
        Else
            Application.OnTime Now + TimeValue("00:00:01"), "¶}©lp®É", schedule:=False
        End If
    
    On Error GoTo 0
    Application.ScreenUpdating = True
End Sub
Sub Ãö³¬p®É¾¹()
    Application.ScreenUpdating = False
    On Error Resume Next
    Application.OnTime Now + TimeValue("00:00:01"), "p®É¾¹", schedule:=False
    
        Set Sh = CreateObject("Shell.Application")
        For n = Sh.Windows.Count To 1 Step -1
            Set IE = Sh.Windows(n - 1)
            If Right(UCase(IE.FullName), 12) = "IEXPLORE.EXE" Then
                If IE.document.Url Like "*www.google.com.tw*" Then
                    IE.Quit
                    K = 1
                Exit For
                End If
            End If
        Next n
        
    On Error GoTo 0
    Application.ScreenUpdating = True
End Sub
 | 
 |