|    | 
     ▼neptune さん: 
ご指摘ありがとう御座います。 
当方ドが付くほどの素人でして・・・ 
 
ヘルプ等から、 
 
Set fs = Application.FileSearch 
With fs 
  .LookIn = "C:\My Documents" 
  .FileName = "cmd*.*" 
  If .Execute > 0 Then 
    MsgBox .FoundFiles.Count &" 個のファイルが見つかりました。" 
    For i = 1 To .FoundFiles.Count 
      MsgBox .FoundFiles(i) 
    Next i 
  Else 
    MsgBox "ファイルは見つかりませんでした。" 
  End If 
End With 
 
にて実行しメッセージボックスが出る所までは出来たのですが、 
その検索結果をリストボックスに表示する方法が分からないのです。 
 
リスト表示でこの様なコードもあったのですが、 
組み合わせて使用できますでしょうか。 
 
  strRowSouce = "" 
  For intLoop = 0 To intCount - 1 
     strRowSouce = strRowSouce & strList(intLoop) & ";" 
  Next intLoop 
  LBX_List.RowSource = strRowSouce 
  '選択解除 
  For intLoop = 0 To intCount - 1 
    LBX_List.Selected(intLoop) = False 
  Next intLoop 
 
お手数ですがよろしくお願い致します。 
 | 
     
    
   |