• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

how to print a nonconsecutive page

Hi

How to print a non-consecutive page on the second box “Which Page # need to be printed”.

Everything is working good with the code. The only issue is that I can’t or I don’t know how to print the non consecutive page. Let say if I want to print page 2, 3, 5 and 8. I tried 2;3;5;8 did not work.

I am able to print single page and consecutive number. To print a single page let say page 1 then enter 1;1 and if I want to print consecutive page let say page 1 to page 4 then enter 1;4… no problem at all.

Please let me know if its possible to add or fix the code for me to be able to print the non-consecutive page to print from this code:


pNr = Application.InputBox("What Page to Print? seperated by ;", "Printing a Page.", Type:=3)

See attachment.

Thanks.
 

Attachments

  • NONCONSECUTIVE ENTRY.xlsm
    161.4 KB · Views: 0
RDEXCEL2020
Why do You duplicate Your thread?
 
Back
Top