+ Reply to Thread
Results 1 to 9 of 9

Code From 2003 to 2010 excel not working

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Code From 2003 to 2010 excel not working

    Hi, I have included the complete workbook below. Could someone please take a look at the code in this workbook and advise why it works fine in excel 2003 but in 2010 version it skips pages when it prints out.

    When the workbook opens it will ask for the following:
    Label Just Enter: NB
    Item # Just Enter: 45829
    Case Qty Just Enter : 200
    Pallet Qty Just Enter : 2 or 3

    After that it will print out the page depending on what number you enter in the pallet qty.

    This works fine in 2003 never skips a page at all, But when I placed it on a new pc with 2010 it will skips page numbers.

    Thank You, Mike
    Attached Files Attached Files
    Last edited by realniceguy5000; 07-20-2011 at 12:42 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Code From 2003 to 2010 excel not working

    Works OK for me in 2010
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Code From 2003 to 2010 excel not working

    For me too.
    Remember what the dormouse said
    Feed your head

  4. #4
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Code From 2003 to 2010 excel not working

    on my computer works fine on XP, 2003, 2007 and 2010.

    ps. column J was on my computer out of printable area so previously it create 2 pages (maybe you have similar problem regarding rows ?)

    Best Regards
    MaczaQ

  5. #5
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Code From 2003 to 2010 excel not working

    Hmmm, I dont get it then.

    Of coarse it could be the number they are trying to print, they are telling me now that it happens when it's 20 or more pages.

    is there a way to test the output of what is printing with out printing all the copies out?

    Would debug print ? work?

    Thank You, Mike

  6. #6
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Code From 2003 to 2010 excel not working

    I previously change my default printer into PDF Creator, then I test it without print on printer, only create PDF documents ... consider this way..

    check attached PDF result for 52th page

    find three more files:
    init2010.jpg - what I see when I open workbook
    init 2010.pdf - print 50th page
    printAreaSetup_2010.pdf - print 50th page after set up print area

    BR
    MaczaQ
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by MaczaQ; 07-20-2011 at 10:46 AM. Reason: update

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Code From 2003 to 2010 excel not working

    Use PrintPreview instead of PrintOut for checking

  8. #8
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Code From 2003 to 2010 excel not working

    Well, I just had the supervisor show me what he was doing when it skips...He said it happens when it;s over a 100 pages...

    But also I was able to watch run it, looks like he clicked over to his email while the program was running and it skiped about 5 pages. then he cliked back to excel.

    So it appears to happen when excel window is not visible. He said it takes a while to print out 100 or so tags so he was checking his email.

  9. #9
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Code From 2003 to 2010 excel not working

    Well the only thing I could do to fix the issue was add some delay to the script and change how the screen updated,

    Here is what I came up with to fix the issue. Just odd it only happends on one pc.

    Anyway thanks everyone for your input...

    Mike

    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