+ Reply to Thread
Results 1 to 4 of 4

VBA Form code using DO while Loop to print a message.

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Washington, United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    VBA Form code using DO while Loop to print a message.

    I'm currently trying to use a Do While loop to print a certain message the number of times entered in a text box but it keeps printing the amount I enter plus 1. Example I enter 4 in the test box and it prints the message 5 times.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA Form code using DO while Loop to print a message.

    Change this

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-21-2013
    Location
    Washington, United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: VBA Form code using DO while Loop to print a message.

    Wow, the most simple things are the ones that hurt the most. Thank you so much!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA Form code using DO while Loop to print a message.

    Glad it helps you and thanks for the feedback

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. VBA. identify unique values, loop them, filter them in, set print area & print it
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2012, 09:56 PM
  2. Update code for Print function on Form in Visual Basic
    By TheDude001 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2011, 09:28 AM
  3. print form code problem
    By shankar.nstl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2011, 01:17 AM
  4. VBA code to print with a loop
    By Ang12345 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2010, 12:04 PM
  5. 'Loop without do' error message (code inside)
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2009, 07:16 AM

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