A
ajw150
Hi,
Please can you advise how it i possible to do the following.
I would like for a user to click a button on worksheet "Mail", and fo
worksheet "EAR" to save as value of Startdata!A1" and todays date.
would then like sheet EAR to print and the file to stay open. Also, th
contents of EAR are derived from being equal to other sheets, is i
possible to hold the data so EAR's content remains intact?
Thanks
PS. Got this so far:
Sub Save()
Dim strdate As String
Dim uname
With ActiveWorkbook.Worksheets("Sheet1")
uname = .Range("A1").Value & " " & _
.Range("A2").Value
End With
strdate = Format(Now, "dd-mm-yy")
ActiveWorkbook.SaveAs ThisWorkbook.Name _
& "" & strdate & " " & uname & ".xls"
ActiveWorkbook.Worksheets("EAR").PrintOut
ActiveWorkbook.Close False
End Su
Please can you advise how it i possible to do the following.
I would like for a user to click a button on worksheet "Mail", and fo
worksheet "EAR" to save as value of Startdata!A1" and todays date.
would then like sheet EAR to print and the file to stay open. Also, th
contents of EAR are derived from being equal to other sheets, is i
possible to hold the data so EAR's content remains intact?
Thanks
PS. Got this so far:
Sub Save()
Dim strdate As String
Dim uname
With ActiveWorkbook.Worksheets("Sheet1")
uname = .Range("A1").Value & " " & _
.Range("A2").Value
End With
strdate = Format(Now, "dd-mm-yy")
ActiveWorkbook.SaveAs ThisWorkbook.Name _
& "" & strdate & " " & uname & ".xls"
ActiveWorkbook.Worksheets("EAR").PrintOut
ActiveWorkbook.Close False
End Su