+ Reply to Thread
Results 1 to 8 of 8

Printing Form for each record (multiple forms per page)

  1. #1
    Registered User
    Join Date
    12-12-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Printing Form for each record (multiple forms per page)

    Hello all,

    Please forgive my lack of knowledge, I am learning .

    I have a macro that prints a Form or "ticket" for each record in my table. One ticket per page. It works great, however, I would like to print three tickets per page. I have no clue where to start. Can anyone offer any guidance? Please see current code below.

    Sub PrintAll()
    RowCount = Worksheets("BILL - Monthly GSB_18").Cells(Rows.Count, 1).End(xlUp).Row - 1
    Worksheets("Macro").Select
    For i = 1 To RowCount
    Range("A1").Value = i
    ActiveSheet.PrintOut Copies:=1
    Next i
    End Sub

    Thanks in advance

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Printing Form for each record (multiple forms per page)

    what are your sheet names? are you going to print 3 tix per sheet for all worksheets? maybe upload a sample workbook so that i can see what is going on.

  3. #3
    Registered User
    Join Date
    12-12-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing Form for each record (multiple forms per page)

    Sheet names are Macro and BILL - Monthly GSB_18.
    Yes I am trying to print 3 tickets until it reaches the end of the table.
    Attached Files Attached Files
    Last edited by VitaVela; 12-12-2018 at 08:33 AM. Reason: attachment

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Printing Form for each record (multiple forms per page)

    can you take a look at sheet Macro and fix formula for AC14, it is generating an error (#NAME?). fix that and tell me what the new formula is (i think the issue is you have a BOB but no range named that.)

  5. #5
    Registered User
    Join Date
    12-12-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing Form for each record (multiple forms per page)

    Should be fixed. Sorry for delay
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Printing Form for each record (multiple forms per page)

    so i have the macro set up to print 3 tix per sheet for the entire range of the table (table1) but i have some questions on the macro sheet. ranges B2:D3 and AE2:AG2 are fixed address'. shouldnt they be a vlookup for the companies address or are they a fixed address?

    so all i did was put three forms on the macro sheet and cycled though the Bill sheet until it reaches the end of the table. here is the code for you to review:

    Please Login or Register  to view this content.
    and here is the workbook.
    Attached Files Attached Files
    Last edited by dmcgov; 12-12-2018 at 02:57 PM.

  7. #7
    Registered User
    Join Date
    12-12-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: Printing Form for each record (multiple forms per page)

    Yes both of those ranges are fixed.

    Wow. This is great! I love the message box too. Thanks for teaching me something new, really appreciate it.

  8. #8
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Printing Form for each record (multiple forms per page)

    i realized that after printing there were errors in how it was printed. that and some ifNA statements, i got it going pretty good. if this is acceptable, mark the thread as solved and if you feel generous, you can click on the add reputation link, i would appreciate it.
    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. Using One Form To Fill Out Multiple Forms Daily with New Information
    By Johnnywalker419 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-17-2014, 12:46 PM
  2. How to copy format of previous printing-page and apply to the next printing-page?
    By Morrigan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 06:01 PM
  3. [SOLVED] Open a new form, create new record based on current form / record
    By Cyclops in forum Access Tables & Databases
    Replies: 4
    Last Post: 01-28-2013, 06:36 PM
  4. Using loop command to map multiple lists record form
    By RickCornelisse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2009, 03:35 PM
  5. Replies: 1
    Last Post: 01-17-2007, 10:49 PM
  6. Printing multiple forms as one print job
    By superdave51 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2006, 01:10 AM
  7. [SOLVED] Compile/Analyze Word Form Field data from multiple forms?
    By jgundel in forum Excel General
    Replies: 3
    Last Post: 07-13-2005, 10: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