+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : auto copy information from one worksheet to another

Hybrid View

  1. #1
    Registered User
    Join Date
    11-27-2010
    Location
    daleville, alabama
    MS-Off Ver
    Excel 2007
    Posts
    21

    auto copy information from one worksheet to another

    Is there a way for information from one worksheet to be automatically copied to another worksheet in the same workbook?

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: auto copy information from one worksheet to another

    Yes, by using VBA code in the change event of the source worksheet.

    If the source worksheet is Sheet1 and the target is sheet2, then perhaps something along these lines:

    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    
        Dim sCell As String
        
        sCell = Target.Address
        
        Sheet2.Range(sCell) = Target.Value
    
    End Sub
    Note: Sheet names used are code names (not worksheet [tab] names)

    This code will make the same cell on sheet2 to have the whatever is entered on the same cell in sheet.
    The above code must be placed into the worksheet module of Sheet1.
    • Right-Click the tab of Sheet1 > View Code
    • Copy and paste the above code into the code pane (usually on the right side)
    • Close the VB Editor
    Is this what you wanted?
    Last edited by Palmetto; 12-01-2010 at 01:31 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    11-27-2010
    Location
    daleville, alabama
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: auto copy information from one worksheet to another

    thank you... this was very helpful!!

  4. #4
    Registered User
    Join Date
    11-27-2010
    Location
    daleville, alabama
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: auto copy information from one worksheet to another

    okay... so how about this

    If i have a sheet of many different items, is there a way to automatically copy all of the information that goes along with an item (entire row) but ONLY with items that meet a certain specification?

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: auto copy information from one worksheet to another

    Yes, this can, likely, be done - there are a number of methods.

    In order to save time and provide you with a precise answer, why not just outline all of the details upfront instead by bits and pieces?

    You might upload a sample workbook (sensitive data removed/dummied) that contains a manually created example of the desired outcome, along with a clear explanation of all relevant details about the criteria.

  6. #6
    Registered User
    Join Date
    11-27-2010
    Location
    daleville, alabama
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: auto copy information from one worksheet to another

    Here is a very basic idea of what I work with.

    Here are some of the things that I need:

    Ultimately, i want a workbook that

    1. on the first sheet, parts are logged once they come to us (basically, just a holding sheet for parts awaiting processing)

    2. once a ship date has been put into the remarks column, they are removed from the first sheet and automatically put on another sheet (a master log to look back to and see everything thats been logged and shipped so far in that month)

    3. each item that contains "Y" in the 2410 or TSN column is treated the same as other parts as far as once they are shipped, they are removed from the initial log list.
    But once they are initially logged, they are automatically copied to another sheet just for these "2410" items as well as remaining on the initial log sheet until a date it put in the remarks column.


    Once a date is put in the remarks column,
    a. they are removed from the initial log
    b. on the 2410 sheet, they are MOVED from the waiting section to another place, perhaps, on the same sheet that shows these 2410 parts that have been shipped and are not awaiting processing
    c. they are also automatically copied to the master inventory (the third sheet where all other parts automatically go once they are shipped).

    I can see that this may be confusing and I'm hoping that the workbook I have included could clear up some confusion.

    Thank you
    Attached Files Attached Files
    Last edited by jacglc2010; 12-02-2010 at 04:03 PM. Reason: clarification

  7. #7
    Registered User
    Join Date
    11-27-2010
    Location
    daleville, alabama
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: auto copy information from one worksheet to another

    Here is a more updated version of the format I'm wanting to add these automated functions to.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: auto copy information from one worksheet to another

    Hi!
    im quite new to excel so i dont know if i have the correct subject.
    heres my question:

    we have a template that we use, we have a macro in he template that creates a new sheet with the same info. now, i want that excel shud copy a cell from each template that we open (let's say we put in different customer names in each template in a specific cell) and copy it into a log sheet, and keep on saving the log sheet so that we have updated the log every minute, AND even if we close the template (thats because we print them and dont save the templates - which thats gona b my next question... how to automatticly save each template every minute or so and save them in a specific file with the name of each workbook shud b the customer name) i shud still have the info in the log sheet.

    i hope i explained myself clear enough!

    Thanks for your help

+ 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