Consulting

Results 1 to 2 of 2

Thread: Solved: Do Events

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: Do Events

    I have a procedure that takes a while to run and I am trying to use a UserForm with a label that starts with width zero and increases with each iteration of the loop.

    I use pctDone (dim as single) = counter/totalrows

    Then userform.Show
    With Userform
    .frameProgress.Caption = Format (pctDone,"0%")
    .labelProgress.Width = pctDone * . frameProgress.Width
    End With

    The code I "copied" then uses "Do Events" which when I type into Excel, it raises an eyebrow and looks at me as if to say "amateur"

    Is there a new way to say "Do Events"

    Is there anything else wrong with what I'm doing

    Please help

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    DoEvents
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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