copy entire book
i want to copy values only of book, no queries, no vba, no formulas
what do i need to change
i want to copy values only of book, no queries, no vba, no formulas
what do i need to change
Rich (BB code):
Sub Auto_Export()
Dim cES As New clsExcelSettings
'Turn off Screen Updating etc
cES.SettingsOff
Dim saveDate As Date
Dim saveTime As Variant
Dim formatTime As String
Dim formatDate As String
Dim SaveFolder As String
Dim FileExt As String
Dim ThisFileName As String
Dim DateFrom As String: DateFrom = Format(Worksheets("Control").Range("StartDate"), "m.d.yyyy")
Dim DateTo As String: DateTo = Format(Worksheets("Control").Range("EndDate"), "m.d.yyyy")
If MsgBox("Would you like to Export this file?", vbInformation + vbYesNo) = vbYes Then
saveDate = Now
FileExt = ".xlsm"
formatDate = Format(saveDate, "MM-DD-YYYY hh.MM")
SaveFolder = "M:\all\Billing Export Books\"
ThisFileName = "Reconcile " & DateFrom & "-" & DateTo & "_" & formatDate & FileExt
ActiveWorkbook.SaveCopyAs SaveFolder & ThisFileName
MsgBox "Process Complete"
End If
'Turn On Screen Updating etc
cES.SettingsOn
End Sub