I have the following Macro that I run assigned to a Button.
Sub AskAndDo()
If MsgBox("Have you Finished collecting data ?", vbYesNo + vbQuestion) = vbNo Then
Exit Sub
Else
If MsgBox("Have you Printed the Reports ?", vbYesNo + vbQuestion) = vbNo Then
Exit Sub
Else
ActiveWorkbook.SaveAs Filename:="\\gamingnt\company\FLOAT MASTER\Float_Sheet_" & Format(Date, "_YY_MM_DD")
End If
End If
Application.Quit
End Sub
What I need is to save as the file that this statement creates
{ActiveWorkbook.SaveAs Filename:="ActiveWorkbook.SaveAs Filename:="\\gamingnt\company\FLOAT MASTER\Float_Sheet_" & Format(Date, "_YY_MM_DD" }
BUT keep the current file open.
ie. I open file called Master_Float.xls
I click the Macro saving as Float_Sheet_yy_dd_mm, but I simply wish to just save it, but keep Master_Float.xls open ?
Any Idea's ?
Sub AskAndDo()
If MsgBox("Have you Finished collecting data ?", vbYesNo + vbQuestion) = vbNo Then
Exit Sub
Else
If MsgBox("Have you Printed the Reports ?", vbYesNo + vbQuestion) = vbNo Then
Exit Sub
Else
ActiveWorkbook.SaveAs Filename:="\\gamingnt\company\FLOAT MASTER\Float_Sheet_" & Format(Date, "_YY_MM_DD")
End If
End If
Application.Quit
End Sub
What I need is to save as the file that this statement creates
{ActiveWorkbook.SaveAs Filename:="ActiveWorkbook.SaveAs Filename:="\\gamingnt\company\FLOAT MASTER\Float_Sheet_" & Format(Date, "_YY_MM_DD" }
BUT keep the current file open.
ie. I open file called Master_Float.xls
I click the Macro saving as Float_Sheet_yy_dd_mm, but I simply wish to just save it, but keep Master_Float.xls open ?
Any Idea's ?