Microsoft Office Excel

フォルダ一覧を取得する

'検索対象のパス
Dim targetPath As Variant
targetPath = "C:\Temp"

'フォルダ一覧のオブジェクト
Dim Folder_Collection As Object
Set Folder_Collection = CreateObject("Scripting.FileSystemObject").GetFolder(targetPath).SubFolders

'フォルダを列挙する
For Each Folder_List In Folder_Collection
  ...省略...
Next

ファイル一覧を取得する

'検索対象のパス
Dim strPathName As String
strPathName = "C:\Temp"

Set File_Collection = CreateObject("Scripting.FileSystemObject").GetFolder(strPathName).Files
For Each File_List In File_Collection
  ...省略...
Next


中古車買取実績No.1ガリバー

コメント:



(画像の文字列を入力して下さい)

トップ   編集 凍結 差分 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019/12/02 (月) 12:43:12 (1628d)

PCpዾyǗlgĂ܂}WŔ܂z 萔O~ył񂫁z Yahoo yV NTT-X Store

z[y[W ̃NWbgJ[h COiq ӂ邳Ɣ[ COsیI COze