MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Sub ImportSheet() Dim fileName Dim wb As Workbook Dim strPath As String Dim fs, f Dim asof As String fileName = Application.GetOpenFilename("Other Workbook (*.xl*),*.xl*") If fileName = "False" Then MsgBox "You have not selected a file. Please try again." GoTo QuitSub End If Set wb = Workbooks.Open(fileName:=fileName) With ThisWorkbook wb.Worksheets(1).Copy After:=.Worksheets(.Worksheets.Count) wb.Close False .Activate .Worksheets(.Worksheets.Count).Select End With Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(fileName) asof = f.DateCreated strPath = ThisWorkbook.Path ActiveWorkbook.SaveAs strPath & Application.PathSeparator & "Data as of " & asof QuitSub: End Sub