+ Reply to Thread
Results 1 to 13 of 13

Printing cell data across multiple copies.

  1. #1
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Printing cell data across multiple copies.

    I have a work sheet that i want to print multiple copies of, id like to print each copy with a different header. I have to print 160 copies all with 160 different headers. i have all the headers in separate cells. can anyone provide me with a macro to do this. Thank you in advance!

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    Can I assume all your headers are in one column and in sequential rows?

    try this in a module:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    this does not work i changed header sheet and work sheet that will print to sheet 1. column a is hidden as i only want it to print the list in the header. Am I missing a step?

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    can you maybe post your workbook with what you currently have for code? (or at least paste your code)

  5. #5
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    Option Explicit
    Sub head_and_print()

    Dim wsh As Worksheet 'header worksheet
    Dim wsp As Worksheet 'printing worksheet

    Dim i As Integer

    Set wsh = Worksheets("Sheet 1")
    Set wsp = Worksheets("Sheet 1")
    For i = 1 To 109 'assumes headers are stored in rows 1 to 160
    With wsp
    .PageSetup.CenterHeader = wsh.Range("A" & i).Value 'assumes you have the headers in column A
    .PrintOut
    End With
    Next i

    End Sub

  6. #6
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    trying to attach
    Attached Files Attached Files

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    sorry what's wrong?
    as I step through the macro, I get a copy with AIRPORT CO TIA
    then BEACH PARK CO,
    then I stopped. What is it that is not working for you? you have to run the macro for it to do anything, but I got 2 copies no problem. Maybe I didn't understand, I thought you said nothing happens?
    It assumes you want to print to your default printer..

    This will not make it do things when you go to menu and select print... you need to run the macro, which will change header and do the printing for you. Alternatively insert a button in the form and assign the macro to it.
    Last edited by Arkadi; 12-19-2014 at 02:20 PM.

  8. #8
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    Im sorry this is my first time really using macros. I did not realize i had to run it. Thank you for your help

    #NOOB

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    No problem!, you are ok now? if so please mark the thread as solved, but if you want more help let us know

    Edit:

    I moved your macro to a sub, and added a button that you can use to trigger the macro. Macro already assigned to the button.
    Attached Files Attached Files
    Last edited by Arkadi; 12-19-2014 at 02:28 PM.

  10. #10
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    One more question how would i change this to print the Centerheader from Column A the Rightheader from Column B and the Leftheader from Column C

  11. #11
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    12-19-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing cell data across multiple copies.

    And where do i mark as solved?

  13. #13
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Printing cell data across multiple copies.

    menu near the top has a "Thread Tools" item. Under that is the Mark as solved option.

+ 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. Printing Multiple Copies of Just One Tab of a Worksheet
    By AZNDrumsKazuki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2013, 03:53 PM
  2. Replies: 0
    Last Post: 08-25-2009, 09:37 PM
  3. Printing Multiple Copies??
    By Alex Clark in forum Excel General
    Replies: 1
    Last Post: 03-22-2006, 01:20 PM
  4. Printing Multiple Copies
    By Alex Clark in forum Excel General
    Replies: 0
    Last Post: 03-09-2006, 09:50 AM
  5. printing multiple copies of a worksheet
    By bloodgroove in forum Excel General
    Replies: 10
    Last Post: 09-20-2005, 01:05 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