Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I am having real trouble with 'Workbook_BeforeClose'. I have read numerous threads and the help in VB, but nothing I try makes the event work. I am now so confused I'm stumped. Can someone give me a step by step guide to what I need to do for this to work please? I basically want to select a particular sheet in the workbook before closing it. This sheet will always be in the same position in the workbook, but will have a different name every time. I have tried this code to no avail: Private Sub Workbook_BeforeClose( ) Sheets(3).Select 'select required sheet ActiveWorkbook.Close 'close on required sheet End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_BeforeClose? | Excel Programming | |||
Workbook_BeforeClose | Excel Programming | |||
workbook_beforeClose | Excel Programming | |||
Workbook_BeforeClose | Excel Programming | |||
Workbook_BeforeClose | Excel Programming |