Private Sub Dir1_Change() File1.Path = Dir1.Path End SubPrivate Sub Drive1_Change() ' 引用 microsoft scripting runtime Dim fso As New FileSystemObject If fso.GetDrive(Drive1.Drive).IsReady Then Dir1.Path = Drive1.Drive Else MsgBox Drive1.Drive & "没准备好" End If Set fso = Nothing End Sub
谢谢老师! 挂在 Dim fso As New FileSystemObject 这句上了, 提示“用户定义类型未定义” ? 继续求救
File1.Path = Dir1.Path
End SubPrivate Sub Drive1_Change()
' 引用 microsoft scripting runtime
Dim fso As New FileSystemObject
If fso.GetDrive(Drive1.Drive).IsReady Then
Dir1.Path = Drive1.Drive
Else
MsgBox Drive1.Drive & "没准备好"
End If
Set fso = Nothing
End Sub
挂在 Dim fso As New FileSystemObject 这句上了,
提示“用户定义类型未定义” ? 继续求救