+ Reply to Thread
Results 1 to 4 of 4

VBA Query: Copying specific sheets with parameters to a mastersheet

  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    VBA Query: Copying specific sheets with parameters to a mastersheet

    Hi All,

    In need of some VBA widsom! i'm very new to VBA and am completely stuck.

    I have attached a workbook of the exact template that i'm working on.

    I need a code to help me copy data from Row 9 and below from each of the worksheets - Advertising,CRM,Promo & Animations, POS into 'Forecast Mapping' Sheet. Please note when coding i need it to name the specific sheet name of each and not 'all sheets in work book' as i have other sheets that will clash.

    The order of pasting should be as above.

    I only want the macro to paste whole rows if there is a value anywhere between J10:U10 and below.

    This is to ensure that the data i copy to the 'Forecast Mapping' have costings attributed to it.

    Once Advertising (1st) has been copied to the 'Forecast Mapping', it then needs to copy CRM (2nd) and paste rows directly underneath the last row used. This should also apply for Promo & Animations (3rd) and POS (4th).

    Any help would be much appreciated!! i have look at so many codes for this but can't get the right coding to work. keeps returning errors.

    Thank you all!

    KK
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VBA Query: Copying specific sheets with parameters to a mastersheet

    So you want to copy and paste ONLY those 4 sheets? You wont ever want to do more?

    How many other sheets can exist? What logic can be used to determine IF the sheet has data you want besides the name?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    07-28-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: VBA Query: Copying specific sheets with parameters to a mastersheet

    Hi mikeTRON,

    thanks for getting back to me, its very much appreciated.

    yes, i would only like to paste to those 4 specific sheets. there will be other exisiting sheets in the same workbook perhaps 8 more but they are not interrelated so i need a macro that targets specifically those sheets.

    The logic that i would use is if there is a value say $100 entered in any of the 4 sheets 'Advertising, CRM, Promo & Animations and POS between columns J and U from row 10 and downwards, then the macro would copy that row and paste it into the 'Forecast Mapping' sheet. Columns J and U are numbered 1 - 12 to represent months. so if there is a cost is any of the months, then it should be copied into the forecast mapping sheet.

    I hope this clears it up but if it doesn't, please let me know and i'll try harder to explain.

    Once again, your help is so much appreciated.

    thank you!
    KK

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: VBA Query: Copying specific sheets with parameters to a mastersheet

    Plz, put the following code to a module, and try to run it to solve your problem,

    Please Login or Register  to view this content.

    you can easily change the name of the sheets or the order that the sub refer to them, by change the code-lines in above sub
    Please Login or Register  to view this content.
    I hope, you 'll enjoy the solution
    Last edited by tigertiger; 07-30-2014 at 09:35 PM.
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

+ 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. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  2. [SOLVED] Novice query- copying between sheets
    By TF10 in forum Excel General
    Replies: 17
    Last Post: 07-17-2012, 08:03 AM
  3. Copying specific cell based on two parameters and then sorting based on one parameter
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 02:27 AM
  4. [SOLVED] Copying Mastersheet layout to the rest of the sheets
    By TooN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2006, 06:30 AM
  5. Copying sheets to a mastersheet Help needed
    By auspcs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2006, 07:42 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