+ Reply to Thread
Results 1 to 2 of 2

Copying data into already existing sheets and running formulas

  1. #1
    Registered User
    Join Date
    03-25-2020
    Location
    Loxahatchee
    MS-Off Ver
    2016
    Posts
    16

    Copying data into already existing sheets and running formulas

    Hi I’m VERY new to VBA, but I’ve been working more and more with Excel. Below I give a background of my project and the last paragraph contains my questions.

    There are 3 sheets. One is a sheet called ‘LLP Sheet’ where each column is designated to a different vehicle serial number. Going down that column is data pertaining to that vehicle’s parts. Sometimes there are 5 columns on this sheet meaning there are 5 vehicles with different data or there’s 1 column meaning there’s only 1 vehicle with data. This is the only sheet the user should be changing.

    The second sheet is called ‘MasterModel’ the master tells you information for each part’s current list price for the parts listed in the ‘LLP Sheet’ sheet which feeds into the third sheet’s formulas.

    The third sheet ‘Current’ calls a column in the ‘LLP Sheet’ sheet and feeds that vehicle’s information through many formulas.

    I’m trying to automate this process more with VBA so other users you can use it without having to add/copy the ‘current’ sheet each time the user wants to add another vehicle then change those cells to match the column in the ‘LLP Sheet’.

    So far, I’ve only been able to create a new sheet(s) for each column or vehicle automatically and name that sheet the vehicle’s serial number. If there are 5 vehicles/columns it creates 5 more sheets and so on and actually copies the column info into that sheet. How do I copy the ‘Current’ sheet into each of these new sheets and feed each vehicle’s data in the ‘LLP Sheet’ sheet through it via VBA?

    I need any help I can get! Thank you!

    Module 1: (copies the column from 'LLP Sheet' and puts it in new sheet)

    Please Login or Register  to view this content.
    Module 2: (names the sheet as the vehicle serial number which is at the top of each column)

    Please Login or Register  to view this content.
    Module 4: (I’m trying to copy ‘current’ into each sheet already created by telling it how many, but it creates new sheets and doesn’t put it in the sheets already created for each column/vehicle)

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 03-27-2020 at 10:25 AM. Reason: Please use code tags!

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,043

    Re: Copying data into already existing sheets and running formulas

    I don't know if I could suggest a solution for you but it would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Copying multiple sheets into one, and running out of rows
    By moocow77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2019, 11:55 AM
  2. Clear existing data before running another macro?
    By Tmax95 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2014, 12:42 PM
  3. Copying formulas to different sheets
    By amalone1021 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2013, 01:34 PM
  4. Copying cells from existing sheets to new row of master sheet in one workbook
    By volcaremos in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-06-2012, 03:53 PM
  5. [SOLVED] Avoiding Existing Sheets When Copying And Renaming From A List
    By taccoo73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2012, 10:20 AM
  6. Copying New sheets using formulas involving previous sheets
    By mcsc03 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2008, 06:01 PM
  7. Copying existing sheets to another Workbook
    By Smonczka in forum Excel General
    Replies: 7
    Last Post: 06-15-2005, 09:05 AM

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