Hi, I currently have the below Macro exporting a sheet from Excel. However whereas at present the macro exports the sheet with a specific name and saves to the H Drive. I would like the macro to export with the same naming arrangement, but ask where to save.
Please help.
![]()
Sub Button1_Click() Dim oApp As Object Dim oMail As Object Dim WB As Workbook Dim FileName As String Dim wSht As Worksheet Dim shtName As String Application.ScreenUpdating = False ' Make a copy of the active worksheet ' and save it to a temporary file ActiveSheet.Copy Set WB = ActiveWorkbook FileName = WB.Worksheets(1).Name & " RFI TRACKER " & Replace(Date, "/", "-") On Error Resume Next Kill "H:\" & FileName On Error GoTo 0 WB.SaveAs FileName:="H:\" & FileName End Sub
Bookmarks