Results 1 to 2 of 2

Thread: Problem to Exit/Cancel from Userform2

  1. #1
    Active Member
    Join Date
    2005-02
    Posts
    95
    Login to Give a bone
    0

    Default Problem to Exit/Cancel from Userform2

    I have create a program which has two nos. of userform.

    When I click on the tower button then the FserForm1 is showing when I click ok then
    program will close UserForm1 and Showing UserForm2.

    In the UserForm1 I have put a Condition

    Code:
    Do While Nop > Count
    UserForm2.Show
    If Nop = Count Then
    TextBox1.Value = Totpanh1
    End If
    Loop
    End Sub
    'Program End
    Now Nop = 3 and Count = 1
    then
    It will goes UserForm2 when I completed data then clik on OK button
    Then again UserForm2 is showing and so...
    This will happen Nop times.
    But I want to Exit when count = 1 or 2.

    Can anybody give me an Idea!

    For Pixle Park
    Avinash Patil
    Last edited by Opie; 2006-08-06 at 05:33 AM. Reason: [code] tags added.

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Problem to Exit/Cancel from Userform2

    Where does Count get incremented? When does NOP get changed? I don't see where those variables are changed during your While .. Loop
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Real time Pan/Zoom macro cancel problem
    By ajw3 in forum AutoCAD Customization
    Replies: 0
    Last Post: 2011-06-15, 03:38 PM
  2. Cancel all
    By JSelf in forum Dot Net API
    Replies: 5
    Last Post: 2010-09-15, 03:28 PM
  3. Enter Distance or Cancel/EXIT
    By Mr Cory in forum AutoLISP
    Replies: 9
    Last Post: 2008-04-10, 11:26 PM
  4. Cancel within a Lisp
    By fletch97 in forum AutoLISP
    Replies: 3
    Last Post: 2005-07-05, 06:31 PM
  5. Plot Preview: Cancel should not exit plotting command
    By dpasa in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2005-06-25, 08:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •