+ Reply to Thread
Results 1 to 6 of 6

set print selection cell based on criteria with vba

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2003
    Posts
    20

    set print selection cell based on criteria with vba

    how to print out data based on criteria, example : see my attachment,

    A1 to Q5 and A38 to Q40 always set as print area selections

    i need vba script to solve it


    thank you so much
    Attached Files Attached Files
    Last edited by pakian; 11-24-2012 at 08:54 AM.

  2. #2
    Registered User
    Join Date
    11-15-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: set print selection cell based on conditional criteria with vba

    guy i can use this function to filter data to be printed
    Please Login or Register  to view this content.
    but i want the function convert into vb code
    thx for sharing
    Last edited by pakian; 11-24-2012 at 08:56 AM.

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: set print selection cell based on criteria with vba

    anybody help me please ?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: set print selection cell based on criteria with vba

    Hi Pakian,

    Do you intend to print as you set the print area? - if so, then selectively hiding the rows not to be printed could be a solution. I'm experimenting with the issue
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: set print selection cell based on criteria with vba

    Quote Originally Posted by xladept View Post
    Hi Pakian,

    Do you intend to print as you set the print area? - if so, then selectively hiding the rows not to be printed could be a solution. I'm experimenting with the issue
    selectively hiding more then 3000 row randomly, it takes long time , this function help me, i just filter with print to select print selection quickly, i put this function in column R
    HTML Code: 
    and now,,,how then the function putting in the modul as a vb code...?
    Last edited by pakian; 11-24-2012 at 06:33 PM.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: set print selection cell based on criteria with vba

    I thought you only had 40 rows - but you can hide all the rows, then unhide the ones you want.

    I've got this code but it won't give a cohesive printout!

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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