+ Reply to Thread
Results 1 to 4 of 4

Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print document

  1. #1
    Registered User
    Join Date
    05-18-2014
    Location
    Singleton, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print document

    I am on a diet to lose weight - it is working and I have decided to create my own calorie plan (see attachment).

    In columns "D-J" I select which food I require for pre breakfast, breakfast, morning tea, lunch, afternoon tea, dinner and before bed.

    The calorie count should not exceed 1800 - at least that is the plan. See R85.

    What I want to do is to create a printed document (exampled in O1:V63).

    I am a newbie but learning quickly.

    Can you assist?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print documen

    question.....
    is there a specific reason why you require it copied onto another sheet?

    you can set print area on your sheet between o1:v63 and everytime you print it will be that area?

    i have set print area as advised into your example
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    05-18-2014
    Location
    Singleton, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print documen

    I need a formula or function (I think) that enables me to read the data in columns A-J and create a meal plan as demonstrated in columns O-V.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy cell data from worksheet 1 to worksheet 2 - run macro to create and print documen

    was actually a little harder than i thought it was going to be
    i transferred the main data sheet on sheet 2 and insert a helper row to get row header down to line level (column A)
    after which i used the CSE formula (ctrl+shift+enter to get the {} around the formula)


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    assumption i took was you cannot have more than 6 items per meal per day..this based on your previous template...if you want more you can just fill down the formulas
    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. [SOLVED] Macro to Copy Master Worksheet create and paste in new auto named worksheet
    By TheRealLethality in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 12:46 AM
  2. [SOLVED] Macro/VBA code to Copy data from primary worksheet to a worksheet opened by macro
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 11:10 AM
  3. Create Macro to copy and paste data from one worksheet to another and enter page breaks
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 02:23 PM
  4. Replies: 1
    Last Post: 08-29-2012, 07:11 PM
  5. Macro to copy worksheet content row by row to Word document
    By rkh_11 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2010, 06:19 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