Skip to content

Instantly share code, notes, and snippets.

@kumatti1
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumatti1/9b6eac43e294db94e837 to your computer and use it in GitHub Desktop.
Save kumatti1/9b6eac43e294db94e837 to your computer and use it in GitHub Desktop.
検索ボックスにセット
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