Results 1 to 2 of 2

Thread: MS Word UserForm ControlTipText

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    1

    MS Word UserForm ControlTipText

    I have a userform that I have created in MS Word with VBA.

    The userform contains a Multipage1, cmdOK and cmdCancel command buttons.

    Multipage1 has Page1 - Page4
    Page1 has Frame1 - Frame7
    Each Frame has chkboxes and/or optbuttons

    I am trying to have the ControlTipText show for the controls within the Frames without any luck. I have brought all controls that require the ControlTipText forward.
    The command buttons display the ControlTipText without problem.

    Please help me resolve this. Thank you!
    Code:
    Private Sub UserForm_Initialize()
        
            With frm1.MultiPage1
                With .Page1
                    With .Frame1
                        .chk1.ControlTipText = "Tip 1"
                        .chk2.ControlTipText = "Tip 2"
                    End With
                    With .Frame2
                        .opt3.ControlTipText = "Tip 3"
                        .opt4.ControlTipText = "Tip 4"
                        .opt5.ControlTipText = "Tip 5"
                    End With
    '''
                    .Frame7.chk20.ControlTipText = "Tip 20"
                End With
    '''
                With .Page4
                    .chk40.ControlTipText = "Tip 40"
                End With
            End With
    
            cmdOk.ControlTipText = "Save and Close"
            cmdCancel.ControlTipText = "Close"
    End Sub

  2. #2
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591
    What doesn't work? Works fine for me. Try using Option Explicit to make sure all the control names are correct.


Posting Permissions

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



Click Here to Expand Forum to Full Width