+ Reply to Thread
Results 1 to 4 of 4

This workbook code correction

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    This workbook code correction

    Dear Friends,
    I have 2 macros in my file. 1. newyear 2. anniversary. I have not inserted anniversary macro in the file But I want to run anniversary macro daily and newyear macro on 1st January of each year in future regularly.

    The present code in this workbook code works fine for anniversary macro but not for newyear. Please assume that there is a anniversary macro in the file and call event in this workbook code 'call anniversary' and suggest me a correction.

    Thanking you in anticipation.

    Sincerely,

    Mukesh
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: This workbook code correction

    This will run a macro if it is January 1st. Assuming you open the workbook on January 1st

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: This workbook code correction

    Hi stnkynts,
    Excellent! It's working fine. On 1st January the output of this code will be available. Now only anniversary macro is running so that the code is working fine as per my requirement.

    Thank you for suggestion.

    Sincerely,

    Mukesh

  4. #4
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: This workbook code correction

    Hi stnkynts,
    Sorry for posting again in solved thread. I changed the date 24/12 for testing but it it's not giving me the required output. It delivers only anniversary mails and not newyear mails. My date format is DD MM. So I changed it to 24/12 in cell b5.

    Please see the attached file this workbook code and correct me.

    Sorry and thank you.

    Sincerely,

    Mukesh
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] need correction in code
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2012, 06:14 AM
  2. Vba Code Correction
    By tromao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2007, 05:55 PM
  3. [SOLVED] VBA Code Correction
    By RichIT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2006, 12:10 PM
  4. VBA Code Correction
    By RichIT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2006, 11:35 AM
  5. Code Correction Need
    By Safi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2006, 01:10 PM

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