Hi I have part of my macro pasted below. The problem I'm having is I'm getting the full path name of the file, which is not what I want. How can i get ONLY the file name itself pasted into cell A1?
Set Wbk1 = ActiveWorkbook
Fname = Application.GetOpenFilename
Set Wbk2 = Workbooks.Open(Fname)
Wbk2.Sheets(1).Copy , Wbk1.Sheets(Wbk1.Sheets.Count)
Range("A1") = Fname
Wbk2.Close False
Wbk1.Sheets(Wbk1.Sheets.Count).Name = "REF"
Set Wbk1 = ActiveWorkbook
Fname = Application.GetOpenFilename
Set Wbk2 = Workbooks.Open(Fname)
Wbk2.Sheets(1).Copy , Wbk1.Sheets(Wbk1.Sheets.Count)
Range("A1") = Fname
Wbk2.Close False
Wbk1.Sheets(Wbk1.Sheets.Count).Name = "REF"