| 
    
     |  | プロシージャ間の変数の連絡がお解りでないようですね。 とりあえず、こんな感じでしょうか。
 Option Explicit
 Const path1 = "C:\Documents and Settings\デスクトップ\temp"
 
 Sub FullPath_Get()      'パス取得用
 Dim i As Integer
 For i = 1 To 7
 Call Dir_Path(path1 & "\" & CStr(i) & "\")
 Next i
 End Sub
 
 Sub Dir_Path(strPath As String)
 Dim strFile As String
 strFile = Dir(strPath & "*.txt")
 Do While strFile <> ""
 Call File_Read(strPath & strFile)
 strFile = Dir()
 Loop
 End Sub
 
 Sub File_Read(strFullPath As String) 'ファイル読み込み用
 Dim strRec As String
 Dim file_No As Integer
 file_No = FreeFile
 Open strFullPath For Input As file_No
 Do While Not EOF(file_No)
 Line Input #file_No, strRec
 Call File_check(strRec)  '別ルーチンの呼び出し
 Loop
 Close file_No
 End Sub
 
 Sub File_check(strRec As String)    'ファイルの中身チェック用
 Debug.Print strRec
 ' ここは考えて下さい
 End Sub
 
 |  |