+ Reply to Thread
Results 1 to 2 of 2

Change label caption on userForm while code runs

  1. #1
    Sliman
    Guest

    Change label caption on userForm while code runs

    I am wanting to change label caption on userform while code runs.
    Have got it working as follows inserted in break in VB but is there a
    better way?

    UserForm1.Hide
    UserForm1.Show vbModeless
    UserForm1.Label1.Caption = "Step 2 in progress"
    Application.Wait Now + TimeValue("0:0:01")

    Thanks
    Simon


  2. #2
    Tom Ogilvy
    Guest

    RE: Change label caption on userForm while code runs

    Possibly. Look at Chip Pearson's page on application.Ontime

    http://www.cpearson.com/excel/ontime.htm

    --
    Regards,
    Tom Ogilvy


    "Sliman" wrote:

    > I am wanting to change label caption on userform while code runs.
    > Have got it working as follows inserted in break in VB but is there a
    > better way?
    >
    > UserForm1.Hide
    > UserForm1.Show vbModeless
    > UserForm1.Label1.Caption = "Step 2 in progress"
    > Application.Wait Now + TimeValue("0:0:01")
    >
    > Thanks
    > Simon
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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