+ Reply to Thread
Results 1 to 8 of 8

print out data for selected sheet from combo box without empty rows

  1. #1
    Forum Contributor
    Join Date
    02-08-2021
    Location
    africa
    MS-Off Ver
    2016
    Posts
    413

    print out data for selected sheet from combo box without empty rows

    Hello,
    I would print out data for specific sheet based on selected sheet name from combobox1
    CA sheet as example when print out should ignore any empty rows don't contain anything in column A .
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,079

    Re: print out data for selected sheet from combo box without empty rows

    Try


    Please Login or Register  to view this content.
    Also you need to remove this line
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-08-2021
    Location
    africa
    MS-Off Ver
    2016
    Posts
    413

    Re: print out data for selected sheet from combo box without empty rows

    thanks,
    still print out empty rows contains borders !

  4. #4
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,079

    Re: print out data for selected sheet from combo box without empty rows

    Strange. It's works for me. I guess you could just find the last populated row using xl(up).

  5. #5
    Forum Contributor
    Join Date
    02-08-2021
    Location
    africa
    MS-Off Ver
    2016
    Posts
    413

    Re: print out data for selected sheet from combo box without empty rows

    I use this code to show me used lastrow , and show me row 16 where contains TOTAL word in column A
    Please Login or Register  to view this content.
    may you check my file,please?
    may you tell me what the last row when print out paper, please?
    I suppose row 16 , right?
    Attached Files Attached Files
    Last edited by MKLAQ; 09-11-2024 at 08:33 AM.

  6. #6
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,079

    Re: print out data for selected sheet from combo box without empty rows

    You could try:
    Please Login or Register  to view this content.
    In this case and for me before, the print preview looks like this.
    Attached Images Attached Images

  7. #7
    Forum Contributor
    Join Date
    02-08-2021
    Location
    africa
    MS-Off Ver
    2016
    Posts
    413

    Re: print out data for selected sheet from combo box without empty rows

    You could try:
    finally it works.
    In this case and for me before, the print preview looks like this.
    really strange!
    thank you so much.

  8. #8
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,079

    Re: print out data for selected sheet from combo box without empty rows

    Yes, I'm not sure why Currentregion didn't work for you. Glad the other did!

+ 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] Print selected rows based on cell data
    By sipa in forum Excel General
    Replies: 13
    Last Post: 10-02-2016, 04:08 PM
  2. Move Only Selected Data Frm 1 Sheet 2 other Existin Workbooks 1st Avaliable Empty ROW
    By xcruc1at3r in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-09-2011, 06:46 PM
  3. Replies: 29
    Last Post: 11-22-2010, 03:51 PM
  4. Need Fix for Code To Print Selected Rows On One Sheet
    By elance in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-01-2010, 04:08 PM
  5. Print the data attached to the combo on spread sheet at the selection
    By Rituraj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2010, 11:12 PM
  6. Replies: 0
    Last Post: 07-28-2010, 11:01 PM
  7. [SOLVED] Automatically transfer selected data to another sheet on print
    By FFW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2005, 05: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