L
LEU
I have a macro that prompts me to enter a file name and then it gets the text
and writes it to my document. I have too many file names now to remember them
all. Is there a way to display all the files in my folder and I can just
choose the one I want? Here is the first part of my macro that gets the file:
Dim tempfile
Dim bk1, bk2, bk3, bk4, bk5, bk6, bk7
tempfile = InputBox("Input your file name")
tempfile = "C:\History\†+ tempfile + ".txt"
If Dir(tempfile) = "" Then
MsgBox "This file doesn't exist please try again", , "No File"
Exit Sub
End If
Open tempfile For Input As #1
and writes it to my document. I have too many file names now to remember them
all. Is there a way to display all the files in my folder and I can just
choose the one I want? Here is the first part of my macro that gets the file:
Dim tempfile
Dim bk1, bk2, bk3, bk4, bk5, bk6, bk7
tempfile = InputBox("Input your file name")
tempfile = "C:\History\†+ tempfile + ".txt"
If Dir(tempfile) = "" Then
MsgBox "This file doesn't exist please try again", , "No File"
Exit Sub
End If
Open tempfile For Input As #1