+ Reply to Thread
Results 1 to 14 of 14

Userform fade not working from command buttons

Hybrid View

  1. #1
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,137

    Re: Userform fade not working from command buttons

    Add this to the declarations section in the userform:
    
    Public Button As MSForms.CommandButton
    and then refer to Button wherever you need it in the code.

    The ShowDialog code becomes:
    
    Sub ShowDialog(btn As MSForms.CommandButton)
        Dim frm As UserForm1
        Set frm = New UserForm1
        Set frm.Button = btn
        frm.Show
    End Sub
    and the button_click:
    Private Sub CommandButton7_Click()
    ScreenUpdating = False
    
    ShowDialog CommandButton7
    
    End Sub
    Everyone who confuses correlation and causation ends up dead.

  2. #2
    Registered User
    Join Date
    03-30-2011
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Userform fade not working from command buttons

    Romperstomper, Starting to look good but im losing the transparency behind the form ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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