How do I 'SELECT All' text in a text box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    How do I 'SELECT All' text in a text box

    I want to select all text in a multi line text box from a command
    butten.

    Thank for help
    Dave
  • Rick Rothstein

    #2
    Re: How do I 'SELECT All' text in a text box

    Try this...

    Private Sub Command1_Click( )
    With Text1
    .SelStart = 0
    .SelLength = Len(.Text)
    .SetFocus
    End With
    End Sub

    Rick - MVP


    "Dave" <last2try@earth link.net> wrote in message
    news:fo0b90h0j9 imbvntdea3uu2me fth5teufr@4ax.c om...[color=blue]
    > I want to select all text in a multi line text box from a command
    > butten.
    >
    > Thank for help
    > Dave[/color]

    Comment

    Working...