Hi All:
I am trying to alter this bit of code so that when the dialog box opens the Look in: folder will be the folder that open file is stored in. I have used this snippet of code before:
However I am not sure on how to implement it below OR IF it can be implemented.
I hope this makes sense to someone...
THANKS,
Mark
I am trying to alter this bit of code so that when the dialog box opens the Look in: folder will be the folder that open file is stored in. I have used this snippet of code before:
Code:
TempFilePath = ThisWorkbook.Path & "\"
I hope this makes sense to someone...
Code:
Dim fd As FileDialog
Dim fn As String
Set fd = Application.FileDialog(msoFileDialogOpen)
fd.Title = "** Open the Receipt Register text file in order to convert it into Excel: **"
Dim vrtSelectedItem As Variant
With fd
.Filters.Clear
.Filters.Add "All files", "*.txt"
If .Show = -1 Then
For Each vrtSelectedItem In .SelectedItems
fn = vrtSelectedItem
Next vrtSelectedItem
Else
End If
THANKS,
Mark