Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom Ogilvy wrote:
Private Sub cmbCloseWorkbook2_Click() 'Close (and save) this workbook only Application.ScreenUpdating = False With Worksheets("Input") 'Test for End Time value. If empty then set C5 to Now() If .Range("C5") = "" Then .Range("C5") = Now End With ThisWorkbook.Close savechanges:=True End Sub Should work if you want to keep the code in the Click event. Many thanks all for your time and help. Problem solved. AB |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
write formula that icludes data from sheet 1 to sheet 2 of my spr | Excel Worksheet Functions | |||
Write subtotals to another sheet | Excel Discussion (Misc queries) | |||
how to write to other sheet if and only if? | Excel Worksheet Functions | |||
how to allow macro to write on a protected sheet | Excel Programming | |||
write two excel sheet | Excel Programming |