+ Reply to Thread
Results 1 to 5 of 5

Macro has stopped working after date change

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    77

    Macro has stopped working after date change

    Hi All

    I had a macro that was working great all month.

    When the date changed today it stopped working and I cant see why as i have altered the dates that it looks at.

    Can anyone help? I have attached macro code below & I will attach the sheet shortly.

    Thanks in advance
    Mark

    Please Login or Register  to view this content.
    December Targeting Tool.xlsm
    Last edited by markrennolds; 12-02-2009 at 05:25 PM.

  2. #2
    Registered User
    Join Date
    07-15-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Macro has stopped working after date change

    Forgot to say that error message is:

    object variable or with block variable not set.

    Have looked on help section of excel but not making much sense.

    Thanks
    Mark

  3. #3
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Macro has stopped working after date change

    I think it will work if you change the code as shown below
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro has stopped working after date change

    Mark, please take the time to read the rules at ALL the places you post as crossposting requires you to add the url(s) of all cross posts.

    Cross posted here http://www.thecodecage.com/forumz/me...te-change.html
    Not all forums are the same - seek and you shall find

  5. #5
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro has stopped working after date change

    Quote Originally Posted by Huron View Post
    I think it will work if you change the code as shown below
    Please Login or Register  to view this content.
    Huron yes that will work, Mark didn't tell us what error was at his other posting

+ 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