+ Reply to Thread
Results 1 to 6 of 6

VBA code to move data from a entry sheet to a historical sheet by date

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    VBA code to move data from a entry sheet to a historical sheet by date

    In the attachment you will see an example of what I am trying to accomplish. What I am trying to do is find VBA code that will move data by date from an (Entry) sheet to a (Historical) sheet. I want to enter a date in B3 on the (Entry) sheet. I then enter data into C3. What I would like to happen is when the data is entered into C3 the sheet goes and finds the same date that I entered in B3 and copies that data from C3 into Column E of the (Historical) sheet.


    Thank you and any help given is greatly appreciated.

    Test3.xlsm

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

    Re: VBA code to move data from a entry sheet to a historical sheet by date

    Do you mean to sum the values like this? (Put in Entry sheet)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Re: VBA code to move data from a entry sheet to a historical sheet by date

    stnkynts,

    Thank you for the help. This is sort of what I want it to do. The attachment on the original post is just a small example of what I will be doing. There will be multiple tabs. That is why I want an "Entry" tab. I am trying to avoid going to every single tab to enter data. My plan was to get the code and then just duplicate it for the others to be created. To answer your question... No I don't want it to sum. There should not be data in the date selected on the historical tab. If there is data I would rather it just over write it. To keep things simple for a rookie coder that is why I want the code on the historical sheet. I would prefer to not have message boxes in the code. I have made a format change that will hopefully simplify the coding process. I have put a couple of cells on the historical tab that read back to the entry tab. Attached you will see those changes. Test3.xlsm

    Again thank you for all of your help.

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

    Re: VBA code to move data from a entry sheet to a historical sheet by date

    So you need to loop through each worksheet and find the corresponding date (Entry Sheet B3) and enter the corresponding value (Entry Sheet C3) to the found date?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Re: VBA code to move data from a entry sheet to a historical sheet by date

    Stnkynts,

    I am very sorry about the confusion. As you can tell I am not very good at this coding stuff. There will be different cells for data on the Entry sheet for each historical sheet. As you will see on the attachment... On the Entry Sheet C3 and D3 will read to the Historical 1 sheet, C4 and D4 will read to the Historical 2 sheet, and C5 and D5 will read to the Historical 3 sheet. I have inserted cells at the top of each Historical page that read back to the Entry sheet. What I would like code for is the cells at the top of each historical sheet to save the data by date on their own sheet. After I posted and got your original reply I thought this would be an easier way to code it. That way I can keep the code specific to each historical sheet.

    Thank you for your patients I really appreciate your help.

    Test3.xlsm

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

    Re: VBA code to move data from a entry sheet to a historical sheet by date

    Your values on the entry sheet column B MUST match the other sheet names exactly, spaces and all!!

    Please Login or Register  to view this content.

+ 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] Code to move data from an entry table to a historical table by date.
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 11:04 AM
  2. Move entire row of data from Sheet 1 to sheet 2 when completed date is entered.
    By jt7721 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:50 AM
  3. Replies: 0
    Last Post: 05-10-2013, 08:08 AM
  4. VBA CODE to move rows from one sheet(1) to another sheet(2) based on data in cell
    By fozzieulo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 02:43 PM
  5. Replies: 2
    Last Post: 10-09-2012, 04:40 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