+ Reply to Thread
Results 1 to 4 of 4

Workbook_BeforeClose is not working suddenly

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    20

    Workbook_BeforeClose is not working suddenly

    Hi,
    i have a code for closing the file which suppose to choose a specific sheet and cell.
    for some reason it doesn't work although it has worked before.

    I've added the "Application.EnableEvents = True" command but it still not working...

    thanks!

    Please Login or Register  to view this content.
    Last edited by vlady; 11-11-2012 at 07:46 PM. Reason: code tags

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,494

    Re: Workbook_BeforeClose is not working suddenly

    It's more likely that you have switched off Event handling elsewhere and, for some reason, it is not getting switched back on.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Workbook_BeforeClose is not working suddenly

    How can i find it?
    I didn't use this command anywhere else...
    What else can make it turn off?

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Workbook_BeforeClose is not working suddenly

    Found it,
    I add this command after select case, which probably made it turnes off.

    Thanks!

+ 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