+ Reply to Thread
Results 1 to 8 of 8

VBA Stopped Working!

  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    VBA Stopped Working!

    Hi all,

    I've got the following piece of code that automates two autofilters (one in D7, one in D8).

    Please Login or Register  to view this content.
    Now, this was working fine until yesterday when all of sudden, it's stopped working. I've checked security settings and all the jive, and a number of other macros on the sheet still work fine. I've checked the code a number of times, but cannot see what's wrong.

    Can anyone suggest what I might try to get this working again?

    TIA,

    SamuelT

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373
    Hi Samuel

    It could be that you've disabled events. Are the other event procedures working?

    Check the value of

    Application.EnableEvents

    If it's False, set it to True.

    HTH
    lecxe

  3. #3
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi lecxe,

    How would I go about checking this and changing it? My other events also appear not to be working.

    Thanks for the response.

    SamuelT

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    In a normal module enter this and run


    Please Login or Register  to view this content.
    Then for your event macro's add

    at the start of code
    Please Login or Register  to view this content.
    and this at end of code
    Please Login or Register  to view this content.
    see link. Look for
    Order Of Events
    http://www.cpearson.com/excel/Events.aspx

    HTH

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Thank VBA Noob,

    Unfortunately, still no joy. One thing which might be affected the event (although I'm not sure why) is the below code which is run via a button click when the user first opens the document. The below example is for all users, although there is similar code for each of nine users:

    Please Login or Register  to view this content.
    Thanks for the assists guys.

    SamuelT

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Do a simple event macro test to rule out that as the cause

    If it's not the event macro then you need to explain why you thought it was

    Please Login or Register  to view this content.
    VBA Noob

  7. #7
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi guys,

    Update: looks like the problem might be actually a problem with the computer - everything works fine except on my PC. The IT guys are checking out the machine.

    Thanks for the input, will report back when I know.

    SamuelT

  8. #8
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    So - I sorted out this problem. Turned out to be something very simple: for some reason there appeared to have been a conflict between the VBA and the ASAP Utilities add-on. Once I turned ASAP off, everything worked fine.

    You live and learn!

    Thanks for all the input,

    SamuelT

+ 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