+ Reply to Thread
Results 1 to 2 of 2

Macro for saving / loading values between sheets

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    13

    Macro for saving / loading values between sheets

    Hello all,

    I've been trying to write a macro for taking values that are entered on one worksheet and saving them on anothe worksheet; where they are saved is based on a value that is entered on the first sheet.

    In the example provided, and on the "Today's Values" worksheet, I have fields for values 1 - 15. Only green fields require an entry by the user. In the "Today Is" field, there is a data validated list. This list validates to the values of the top row on the "Weekly Log" worksheet. So depending on the "Today Is" field, I need the macro to take the values and put them in the corresponding value fields on the "Weekly Log" worksheet. This would be the effect of the "Save" macro button.

    Also, I'd like to make it so that I can recall values that are already entered. This would be based on the "Today Is" field, where upon hitting the "Load" macro button, the values for that given day that are currently in the "Weekly Log" sheet will repopulate on the "Today's Values" sheet.

    Can anyone provide some insight and help? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro for saving / loading values between sheets

    Hi bell123

    This code is included in the attached and appears to do as you require.
    Please Login or Register  to view this content.
    Let me know of issues.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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