+ Reply to Thread
Results 1 to 2 of 2

Workbook_BeforeClose

Hybrid View

  1. #1
    paul.morriss@wlucy.co.uk
    Guest

    Workbook_BeforeClose

    I have some 'DeleteMenus' macros in the 'Workbook_BeforeClose'
    procedure which works fine.

    Private Sub Workbook_BeforeClose(Cancel As Boolean)

    Run "DeleteModelsOptions"
    Run "DeleteCostMenu"
    Run "DeleteSpecListMenu"

    ActiveWorkbook.Close savechanges:=False

    End Sub


    The problem I have is if a new workbook is opened as well and then
    closed, it seems to run the 'DeleteMenus' macros of the other workbook,
    therefore removing the menu's.

    Don't understand why this is happening as the 'new'
    workbook_beforeclose procedure is empty.

    Help


  2. #2
    arno
    Guest

    Re: Workbook_BeforeClose

    Hi paul,

    maybe this is your problem:
    > ActiveWorkbook.Close savechanges:=False


    THISworkbook.close

    arno

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1