+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Macro Code Stopped Working

  1. #1
    Registered User
    Join Date
    04-06-2010
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macro Code Stopped Working

    Hi,

    Im currently trying to develop some code that upon populating a cell the colour of it will automatically change (excluding column "A" and rows 1 and 2)

    However during my testing it seems that the code no longer even tries to run?

    Im guessing there is a setting somewhere that has been accidentally changed? Please could someone direct me too this?

    Thanks

    Steve

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Macro Code Stopped Working

    Hi,

    Have you got macros enabled?

    Could you post your code?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    04-06-2010
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro Code Stopped Working

    Hi, my code so far is:

    Please Login or Register  to view this content.

    I will just check whether they are switched on
    Last edited by stevo_300; 04-06-2010 at 07:51 AM. Reason: code tagging

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Macro Code Stopped Working

    you may want to edit your posts with code tags, as per the forum rules while you're checking.

  5. #5
    Registered User
    Join Date
    04-06-2010
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro Code Stopped Working

    Ok, the code seems to run once after re-opening the file but then thats it, does anyone possibly have any ideas?

    The code now is:

    Please Login or Register  to view this content.
    Last edited by stevo_300; 04-06-2010 at 07:51 AM. Reason: code tagging

  6. #6
    Registered User
    Join Date
    04-06-2010
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro Code Stopped Working

    Hi Sweep,

    Ive found my most recent problem (The EnableEvents switch was buried in an if statement and as such not being recognised

    Thanks for your time

+ 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