+ Reply to Thread
Results 1 to 13 of 13

Print two ranges to one page

  1. #1
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Print two ranges to one page

    is there a way to print two ranges, A1:A28 and H1:H28, to one page? I currently have a user form that is to be used to print out these ranges. The first range is the description range with the second range showing the tallies per line against the description. At present using the following code, it prints out on separate pages.
    Please Login or Register  to view this content.
    Any help will be appreciated

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mangesh.mehendale; 09-08-2015 at 04:04 AM.
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    Sorry, my friend, but this does not seem to work for me. Your example prints out in one long column whereas I need to print column h alongside column a

  4. #4
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    try this one
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    my lack of knowledge is showing here, but how would that fit into the commandbutton, (Private Sub July_Click()), I have shown in my query? When viewing the print screen in your sheet, it appears to be printing in one long column instead of side by side.

  6. #6
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    Hiii Second code is showing side by side... see in attached sheet...
    Also let me know why are you using private sub??
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    YES, that works well, thank you very much. The reason for the private sub is my lack of knowledge.

  8. #8
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    Ok Then mark this thread as solved.. (See at top thread tools)
    Change title little like " Print Multiple Ranges Side by Side"
    Hit on Add Reputation to the ans if anyone helps from forum...

  9. #9
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    This now raise another problem. I have set the workbook as hidden so that only the userform is visible. The print setup screen is opening behind the userform so that it cannot be accessed now

  10. #10
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    Please attach sample file...

  11. #11
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    July print Sessions.xlsm
    As can be seen, I am trying to have the July commandbutton print the report in side by side columns on one page. This needs to be done without any interaction from the user. The work book remains hidden from the user so that they cannot alter anything on the work sheets. The password to enter the work book is "password".
    I apologise for being a nuisance but I hope to finish this before I retire which is very soon.

  12. #12
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Print two ranges to one page

    I think print preview not possible with userform

    change this line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-06-2015
    Location
    Tennant Creek
    MS-Off Ver
    2010
    Posts
    46

    Re: Print two ranges to one page

    Sorry for the delay in responding as I am away from work. This is the solution I am looking for, thank you for your effort.

+ 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: 1
    Last Post: 06-20-2014, 02:42 PM
  2. Code and Formula to print dynamic print area ranges
    By stpeter in forum Excel General
    Replies: 1
    Last Post: 10-15-2013, 03:33 PM
  3. Hide Column & Print page Macro printing blank page?!
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2013, 03:59 PM
  4. Replies: 1
    Last Post: 01-12-2012, 05:49 AM
  5. print same 2 ranges (A1 to J26 and A47 to J49) on to the one page
    By Scruffman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2009, 11:04 PM
  6. [SOLVED] how can I print non-adjacent ranges on one page
    By steve in forum Excel General
    Replies: 2
    Last Post: 04-05-2006, 11:40 AM
  7. Replies: 4
    Last Post: 02-17-2006, 08:36 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