+ Reply to Thread
Results 1 to 12 of 12

pdf showing 69 pages and not just the 1

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    pdf showing 69 pages and not just the 1

    hi all

    ive only just noticed this but when i print to pdf, the pdf is showing 69 pages and not just the 1 that is required. i cant see anywhere in this code where all or 69 pages is required all i see is just the range that i want.

    Please Login or Register  to view this content.

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

    Re: pdf showing 69 pages and not just the 1

    Maybe:

    Please Login or Register  to view this content.
    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

  3. #3
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    Thank you ill give it a try when it get home from work

  4. #4
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    Quote Originally Posted by xladept View Post
    Maybe:

    Please Login or Register  to view this content.
    Strange but with your code alone it just prints half a page if i add a 1 after H

    Please Login or Register  to view this content.
    it wants to print 3 pages lol

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

    Re: pdf showing 69 pages and not just the 1

    Hi Learning,

    Don't put anything immediately after the H - write it like this:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    Quote Originally Posted by xladept View Post
    Hi Learning,

    Don't put anything immediately after the H - write it like this:

    Please Login or Register  to view this content.
    i did that and all it showed me was half an invoice lol

  7. #7
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: pdf showing 69 pages and not just the 1

    Hi Learning.. Try this code. I presumed that Sheet15 is sheet number 15 & the other changes I made are in between the hash lines

    Good luck

    Please Login or Register  to view this content.
    Last edited by Philb1; 04-17-2015 at 10:01 PM.

  8. #8
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    Quote Originally Posted by Philb1 View Post
    Hi Learning.. Try this code. I presumed that Sheet15 is sheet number 15 & the other changes I made are in between the hash lines

    Good luck

    Please Login or Register  to view this content.
    sorry for delay in replying but i tried your code but for some reason its erroring out on

    Please Login or Register  to view this content.
    even though i have dates in there
    Last edited by Learning ExL; 04-19-2015 at 03:33 AM.

  9. #9
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    ****SOLVED*****
    many thanks sir

  10. #10
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: pdf showing 69 pages and not just the 1

    It's erroring out because Sheet15 in your code isn't sheet 15, it's sheet 7, it's also the only sheet that's not hidden.
    Try this, I've removed all references to Ws15. I can't test it with your workbook because it's looking for external links

    Please Login or Register  to view this content.

  11. #11
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: pdf showing 69 pages and not just the 1

    Excellent.. You got in before I posted & thanks for the rep

  12. #12
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: pdf showing 69 pages and not just the 1

    your welcome

+ 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: 12-05-2012, 05:30 AM
  2. Stop pages showing
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 01-04-2009, 05:57 AM
  3. Split screen showing different pages of same workbook
    By Bearded Dan in forum Excel General
    Replies: 2
    Last Post: 11-16-2007, 11:33 AM
  4. Replies: 2
    Last Post: 12-30-2005, 12:45 PM
  5. [SOLVED] Showing No. of Pages in a cell
    By Rob in forum Excel General
    Replies: 6
    Last Post: 12-23-2005, 06:25 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