Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many Thanks I had forgot how simple that is...
Rgds Neil *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You might also want to test for Personal.xls, you probably don't want to
close that. -- HTH Bob Phillips "Neil Atkinson" wrote in message ... Many Thanks I had forgot how simple that is... Rgds Neil *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob,
A good suggestion. Neil, Should you wish to keep your Peronal.xls workbook open, as per Bob's suggestion, then try this amendment: '==================== Sub Workbook_Open() Dim WB As Workbook For Each WB In Application.Workbooks If WB.Name < ThisWorkbook.Name _ And LCase(WB.Name) < "personal.xls" Then WB.Close SaveChanges:=True End If Next WB End Sub '<<==================== --- Regards, Norman "Bob Phillips" wrote in message ... You might also want to test for Personal.xls, you probably don't want to close that. -- HTH Bob Phillips "Neil Atkinson" wrote in message ... Many Thanks I had forgot how simple that is... Rgds Neil *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
VBA Code req to close all workbooks | Excel Programming | |||
Why does Excel close all workbooks? | Setting up and Configuration of Excel | |||
Close all other workbooks but this one? | Excel Programming | |||
So close yet so far - combining workbooks | Excel Programming |