+ Reply to Thread
Results 1 to 5 of 5

Printing multiple selections

  1. #1
    Registered User
    Join Date
    11-24-2022
    Location
    London
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Printing multiple selections

    Given is a VBA code (found online) that prints out multiple selections into one page but does not position them as desired. After copying the first selected range, the second one (and next ones) display below each other in the printout.
    Can it be edited so that the second (and next selected ranges) appear next to each other side by side?

    'The current code
    Please Login or Register  to view this content.
    Last edited by davesexcel; 11-26-2022 at 07:17 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Printing multiple selections

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Printing multiple selections

    If you use "Cells" it works as follows: Cells(row number, column number) so "Cells(2, 3)" is the same as Range("C2")
    It looks like you should reverse your "Cells(xIndex, 1)" to "Cells(1, xIndex)"
    I have not tested it but you can do that on a copy of your workbook.
    Experience trumps academics every day of the week and twice on Sunday.

  4. #4
    Registered User
    Join Date
    11-24-2022
    Location
    London
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Printing multiple selections

    Thank you. I tested it and it works!

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Printing multiple selections

    Good to hear all is well in the UK again.
    Good luck

+ 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 selections
    By freestylerX in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-03-2022, 04:33 AM
  2. List Box Selections Outputting Multiple Selections with One Click
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-21-2011, 12:27 PM
  3. Multiple selections from a pick list - only unique selections (no repeats) ?
    By opsayo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 06:25 PM
  4. Printing Multiple Selections from Separate Worksheets
    By rboote in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2008, 02:03 PM
  5. Printing selections
    By Aurbo99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2007, 04:43 PM
  6. Printing Multiple Selections on one page
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2006, 09:45 AM
  7. Printing non-adjacent selections
    By BJ Gates in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-04-2006, 04:40 PM

Tags for this Thread

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