+ Reply to Thread
Results 1 to 4 of 4

Macro for copying values to another worksheet

  1. #1
    Registered User
    Join Date
    07-28-2015
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    2

    Macro for copying values to another worksheet

    Ok, so I am working on helping a friend with his new venture, so his resources are limited. I offered to help with setting up something in Excel, and while I got it to work, I need to it be a bit easier and user friendly.

    What I've created is a product tracking system for him that he can put numbers in to track his products etc.

    The workbook has these pages currently.
    Template
    Overview
    Product One
    Product Two

    I have a macro that can be run for the Template page that will create a new page for Product as it is added by him.
    What I am trying to do though, is when that macro is run (or a separate macro if needed), it would add some values from the new product page to the overview page. It would also need to add it under the last line added, so that way when a 4th product page is created, it would put it under Product Three on the overview page. Currently the cells that need to be carried over to the overview page would be O47, P47, U47, and V47 (more would be added later I am sure). These cells though are formulas that return results based upon his requirements on the product page.

    So when the macro carries them over to the Overview page, it would need to be a referenced formula. Here is where I get lost. The first macro I tried worked, but only for the Product One page. The next attempt I had worked for any Product page, but only copied the value, not the formula so if I was to add inventory, the overview page wouldn't reflect the change.

    Is what I am attempting to do here feasible?

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Macro for copying values to another worksheet

    Sounds like you might be referencing cells.value instead of cells.formula, but without a sample workbook it's hard to conceptualize.

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Winnipeg
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Macro for copying values to another worksheet

    It is feasible but like Poizhan said if you attach a sample workbook it will be easier to help.

  4. #4
    Registered User
    Join Date
    07-28-2015
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    2

    Re: Macro for copying values to another worksheet

    Sorry for the delay, I was having a hard time getting this to load.

    This is just a quick sample of what he wanted. I have the Template and Overview pages and the Macro that when run, copies the Template page and creates a new worksheet.

    When I create the new worksheet, I need (for now, though once I get this I should be able to get the rest) from the new sheet, O47 U47 O71 and U71. O47 adds all the values from range O30 to O45, which are copied values from the left side of the page IE O30 = K6. Same principle applies for the other 3 values.

    With the first new sheet, O47 would copy over to the Overview page, into C4. U47 would be E4, O71 would be G4 and U71 would be I4. When the 2nd product page would be created, the O47 etc would be the same values needed from this new page, but would go to Row 5 on the Overview page.
    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. Problem copying values to a worksheet
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2014, 04:07 PM
  2. Copying Values Between Worksheet
    By n_rubie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2014, 07:08 AM
  3. Copying cells dynamically to a worksheet based on values in another worksheet
    By freelance in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 01:45 PM
  4. IF Statement copying values from one worksheet to another
    By Pomrloo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2013, 12:10 PM
  5. Macro copying data from unopened worksheet to open worksheet
    By chriswiec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-01-2013, 02:14 PM
  6. Copying Checkbox Values into a different worksheet
    By Thiery Balser in forum Excel General
    Replies: 1
    Last Post: 06-17-2005, 09:05 AM
  7. Copying row VALUES to another worksheet
    By eeboater in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2005, 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