Hi Gupta, although this code looks like it will open the file it actually just gets you the file path and location:
Sub findfiles()
Dim CurrentDir As Variant
CurrentDir = CurDir()
Dim fNameAndPath As Variant
If fNameAndPath <> False Then Reset
fNameAndPath = ""
fNameAndPath = Application.GetOpenFilename(Filefilter:="Excel Files(*.xls), *.xls", Title:="Highlight File To Be Opened")
If fNameAndPath = False Then
MsgBox (" No File Selected! ")
Else
MsgBox "Selected file is:" & fNameAndPath
End If
Reset:
End Sub
Regards,
Simon
Bookmarks