+ Reply to Thread
Results 1 to 6 of 6

VBA Code to copy cell value on another sheet on drop down list changed

  1. #1
    Registered User
    Join Date
    02-18-2015
    Location
    Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    8

    VBA Code to copy cell value on another sheet on drop down list changed

    Hi,

    I'm trying to create a calendar in excel that uses a drop down list to change month and year (Tasks sheet). Now what I want is for it to

    1. automatically clear the cells on my calendar (Tasks sheet) once I changed the month or year -- already have the code for this
    2. automatically copy my notes for each day on a different sheet (Tasks DB sheet) once I changed the month or year -- need your help with this as I don't have any idea on how I can do this
    3. shows the notes of previous month if selected on the drop down. --Also needs help with this

    Example of how the calendar works:
    -----------------------------------------
    Current month is June: Put my notes on the task I've done for the month as well as some comments. Then at end of month, I will change the month (select July on the drop down list). Upon month changed, all my notes for June will be saved on Tasks DB sheet and clear the Tasks sheet. Then if I want to review my task for the previous month I will change the month on calendar (set it back to June) and all my notes for that month will show again on the calendar.

    I attached my calendar. So far, that is what I have. Thanks in advance for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Code to copy cell value on another sheet on drop down list changed

    My Apologies


    Try this version.
    Attached Files Attached Files
    Last edited by mehmetcik; 06-14-2015 at 05:00 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    02-18-2015
    Location
    Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: VBA Code to copy cell value on another sheet on drop down list changed

    Hi mehmetcik,

    I tried the calendar version 2, but it's not working..

    The calendar is supposed to copy the month's notes to TasksDB sheet (to act as database). So that I can retrieve my notes (show on the calendar if I select the previous month on the dropdown) and clear the calendar (to refresh) if I select a new month (current month for the year). Do you have any suggestions on how I can make this easier?

    Thanks,
    aftermath09

  4. #4
    Registered User
    Join Date
    02-18-2015
    Location
    Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: VBA Code to copy cell value on another sheet on drop down list changed

    Hi mehmetcik,

    Task Calendar3 version is working perfectly. Thanks!

    Can you also help me to display the following Holidays on their corresponding dates?

    January 1 New Year’s Day (Regular holiday)
    January 2 Additional special non-working day (Special non-working day)
    February 19 Chinese New Year (Special non-working day)
    February 25 EDSA Revolution anniversary (Special holiday for all schools)
    April 2 Maundy Thursday (Regular holiday)
    April 3 Good Friday (Regular holiday)
    April 4 Black Saturday (Special non-working day)
    April 9 Araw ng Kagitingan (Regular holiday)
    May 1 Labor Day (Regular holiday)
    June 12 Independence Day (Regular holiday)
    August 21 Ninoy Aquino Day (Special non-working day)
    August 31 National Heroes Day (Regular holiday)
    November 1 All Saints Day (Special non-working day)
    November 30 Bonifacio Day (Regular holiday)
    December 24 Additional special non-working day (Special non-working day)
    December 25 Christmas Day (Regular holiday)
    December 30 Rizal Day (Regular holiday)
    December 31 Last day of the year (Special non-working day)

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Code to copy cell value on another sheet on drop down list changed

    Try This Version.

    It will get you started.

    You will have to put some formulas into the "Others" Sheet to change the dates depending on the Year in your tasks sheet.

    Some of these holidays will fall on a weekend depending on the year, then you usually get the Monday off instead.

    I have not catered for that.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-18-2015
    Location
    Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: VBA Code to copy cell value on another sheet on drop down list changed

    Hi mehmetcik,

    Thank you so much for all your help in making the calendar work.

+ 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. Replies: 7
    Last Post: 07-04-2014, 05:34 AM
  2. Code to do Save as a specific cell value anytime the sheet is changed
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2014, 12:14 PM
  3. Macro to loop through drop down list and copy data to new sheet
    By mhenneman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2014, 04:11 PM
  4. [SOLVED] VBA vlookup to copy and paste value when a cell value is changed on another sheet
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 12:09 AM
  5. [SOLVED] VBA Code to Copy Cell Value to Another Sheet When Value Is Changed
    By kev2177 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-12-2013, 07:14 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