+ Reply to Thread
Results 1 to 2 of 2

Print From user form.

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2013
    Posts
    37

    Print From user form.

    Hi all,

    am using this code to print from an user form. But each time i print 2 copies it came out 3 copies. Can any1 help to identify what is the problem

    Thanks
    leo

    Please Login or Register  to view this content.
    Last edited by leoruphen; 06-11-2014 at 01:38 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Print From user form.

    You are looping from 1 to the number of pages. So the first time through the loop, you print 1 copy. Then p becomes 2, and so the next time through the loop you print 2 copies. Total of 3 copies. You don't need a loop.

    To fix this, remove the red lines of code.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Print User Form
    By kachuen2006 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2014, 04:35 PM
  2. Print preview from user form opened from a user form
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2011, 05:12 AM
  3. [SOLVED] User form - print Landscape
    By Priya Menan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2006, 11:45 PM
  4. Print scrollable user form.
    By cparsons in forum Excel General
    Replies: 2
    Last Post: 08-04-2005, 12:05 PM
  5. User Form Print
    By Woo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2005, 11:51 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