Results 1 to 15 of 15

i have a userform that is a progress indicator, how to cancel this if needed

Threaded View

dmcgov i have a userform that is a... 05-02-2016, 01:39 PM
ptmuldoon Re: i have a userform that is... 05-02-2016, 02:03 PM
dmcgov Re: i have a userform that is... 05-02-2016, 02:39 PM
ptmuldoon Can you post a sample file to... 05-02-2016, 03:29 PM
dmcgov Re: i have a userform that is... 05-02-2016, 02:34 PM
dmcgov Re: i have a userform that is... 05-03-2016, 07:08 AM
dmcgov Re: i have a userform that is... 05-03-2016, 08:55 AM
dmcgov Re: i have a userform that is... 05-03-2016, 09:21 AM
dmcgov Re: i have a userform that is... 05-03-2016, 09:20 AM
Kyle123 Re: i have a userform that is... 05-03-2016, 10:14 AM
Kyle123 Re: i have a userform that is... 05-03-2016, 10:18 AM
dmcgov Re: i have a userform that is... 05-03-2016, 11:18 AM
dmcgov Re: i have a userform that is... 05-04-2016, 09:29 AM
dmcgov Re: i have a userform that is... 05-03-2016, 10:22 AM
dmcgov Re: i have a userform that is... 05-06-2016, 08:18 AM
  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    i have a userform that is a progress indicator, how to cancel this if needed

    my new routine works great. now i would like to add a cancel button to the form. I did that but it's not canceling.

    how to fix this routine?

    Private Sub CancelExtraction_Click()
        Unload Me
    End Sub
    
    Private Sub userform_Activate()
    Call grand10
    End Sub
    other supporting code
    Sub updateprogress(pct)
    With UserForm1
        .FrameProgress.Caption = Format(pct, "0.000%")
        .LabelProgress.Width = pct * (.FrameProgress.Width - 10)
        .Repaint
        End With
    End Sub
    
    Sub showuserform()
    With UserForm1
        .LabelProgress.Width = 0
        .Show
        End With
    End Sub
    
    Sub RunGrand()
    MsgBox ("this should take 3-4 seconds per fixture")
    Application.Run "showuserform"
    End Sub
    Last edited by dmcgov; 05-02-2016 at 01:51 PM. Reason: changed one line

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Progress Indicator help
    By SUMIF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2016, 09:20 AM
  2. Progress Indicator
    By julhs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2016, 01:17 PM
  3. Progress Indicator userform position jumps during execution
    By jerrydiaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2014, 11:21 AM
  4. long running macro - progress indicator tips needed
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2012, 01:02 AM
  5. Progress Indicator Bar
    By abousetta in forum The Water Cooler
    Replies: 17
    Last Post: 10-01-2012, 03:34 AM
  6. Progress Bar Indicator
    By coneill0422 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2011, 07:18 PM
  7. Progress Indicator
    By excel_lover in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2009, 04:59 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