Last active
August 29, 2015 14:01
-
-
Save kumatti1/9b6eac43e294db94e837 to your computer and use it in GitHub Desktop.
検索ボックスにセット
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub hoge2() | |
Dim Shl As Shell32.Shell | |
Dim Win As InternetExplorer | |
Const StrPath As String = "C:\Temp" | |
Set Shl = New Shell32.Shell | |
For Each Win In Shl.Windows | |
If Win.FullName Like "*\Explorer.EXE" Then | |
If Win.document.Folder.Self.Path = (StrPath) Then | |
Win.Visible = True | |
Application.Wait Now + TimeSerial(0, 0, 1) | |
Application.SendKeys "^f" | |
Application.Wait Now + TimeSerial(0, 0, 1) | |
'Application.SendKeys "abc" | |
SendKeys "テスト" | |
End If | |
End If | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment