J
john
Is there a funtion out there that will print MyFileList for me?
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Command1.Caption = "Print"
Dim FileName As String
FileName = Dir("C:\VariousPrintableFileTypes\*.*")
Do While Len(FileName)
myFileList = myFileList & FileName & vbNewLine
FileName = Dir()
Debug.Print myFileList
Loop
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Sub
Thanks John
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Command1.Caption = "Print"
Dim FileName As String
FileName = Dir("C:\VariousPrintableFileTypes\*.*")
Do While Len(FileName)
myFileList = myFileList & FileName & vbNewLine
FileName = Dir()
Debug.Print myFileList
Loop
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Sub
Thanks John