Hi all,
I want to have the following line in a 'if...then' code:
So if the workbook is saved, then perform the rest of the macro. So if saved then:
If not saved, then end macro.
I can't get this to work..
This isn't working:
I want to have the following line in a 'if...then' code:
Code:
ActiveWorkbook.SaveAs Filename:="Aon " & Format(rapportdatum, "ddmmyy") ".xlsx"
So if the workbook is saved, then perform the rest of the macro. So if saved then:
Code:
ws.UsedRange.Copy With ws.UsedRange.Value = .Value
End With
Application.CutCopyMode = False
ActiveWindow.DisplayGridlines = False
If not saved, then end macro.
I can't get this to work..
This isn't working:
Code:
Dim succes As Boolean
succes = ActiveWorkbook.SaveAs Filename:="Aon " & Format(rapportdatum, "ddmmyy")
if succes is true then
etc. etc.