+ Reply to Thread
Results 1 to 10 of 10

Further Userform questions

  1. #1
    Stuart
    Guest

    Further Userform questions

    With a textbox (from the Drawing toolbar) on a Userform
    can I allow the user to select some of their text and :

    1. Change the Font
    2. Change the Font size
    3. Underline it
    4. Italicise it

    Regards.



  2. #2
    Chip Pearson
    Guest

    Re: Further Userform questions

    I'm not sure what you mean by a text box from the Drawing
    toolbar. However, if you have a regular MSForms textbox on a user
    form, you can change the Font property in a variety of ways,
    e.g.,

    Me.TextBox1.Font.Underline = True
    Me.TextBox1.Font.Italic = True
    Me.TextBox1.Font.Name = "Times New Roman"
    Me.TextBox1.Font.Size = 16



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    > With a textbox (from the Drawing toolbar) on a Userform
    > can I allow the user to select some of their text and :
    >
    > 1. Change the Font
    > 2. Change the Font size
    > 3. Underline it
    > 4. Italicise it
    >
    > Regards.
    >




  3. #3
    Stuart
    Guest

    Re: Further Userform questions

    Apologies, that is what I meant.
    For further clarity..........can the user make these changes after the form
    is displayed?

    Or can/must I use an ActiveX control?

    Regards and thanks

    "Chip Pearson" <chip@cpearson.com> wrote in message
    news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    > I'm not sure what you mean by a text box from the Drawing toolbar.
    > However, if you have a regular MSForms textbox on a user form, you can
    > change the Font property in a variety of ways, e.g.,
    >
    > Me.TextBox1.Font.Underline = True
    > Me.TextBox1.Font.Italic = True
    > Me.TextBox1.Font.Name = "Times New Roman"
    > Me.TextBox1.Font.Size = 16
    >
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    >> With a textbox (from the Drawing toolbar) on a Userform
    >> can I allow the user to select some of their text and :
    >>
    >> 1. Change the Font
    >> 2. Change the Font size
    >> 3. Underline it
    >> 4. Italicise it
    >>
    >> Regards.
    >>

    >
    >




  4. #4
    Bob Phillips
    Guest

    Re: Further Userform questions

    If you provide some control for notification.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    > Apologies, that is what I meant.
    > For further clarity..........can the user make these changes after the

    form
    > is displayed?
    >
    > Or can/must I use an ActiveX control?
    >
    > Regards and thanks
    >
    > "Chip Pearson" <chip@cpearson.com> wrote in message
    > news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    > > I'm not sure what you mean by a text box from the Drawing toolbar.
    > > However, if you have a regular MSForms textbox on a user form, you can
    > > change the Font property in a variety of ways, e.g.,
    > >
    > > Me.TextBox1.Font.Underline = True
    > > Me.TextBox1.Font.Italic = True
    > > Me.TextBox1.Font.Name = "Times New Roman"
    > > Me.TextBox1.Font.Size = 16
    > >
    > >
    > >
    > > --
    > > Cordially,
    > > Chip Pearson
    > > Microsoft MVP - Excel
    > > Pearson Software Consulting, LLC
    > > www.cpearson.com
    > >
    > >
    > > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > > news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    > >> With a textbox (from the Drawing toolbar) on a Userform
    > >> can I allow the user to select some of their text and :
    > >>
    > >> 1. Change the Font
    > >> 2. Change the Font size
    > >> 3. Underline it
    > >> 4. Italicise it
    > >>
    > >> Regards.
    > >>

    > >
    > >

    >
    >




  5. #5
    Chip Pearson
    Guest

    Re: Further Userform questions

    Just use the Textbox control from the Toolbox in the VBA editor.
    The user can't change the properties of the text box directly.
    You would have to provide command buttons that would make the
    requested changes via code similar to what I posted earlier.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com

    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    > Apologies, that is what I meant.
    > For further clarity..........can the user make these changes
    > after the form is displayed?
    >
    > Or can/must I use an ActiveX control?
    >
    > Regards and thanks
    >
    > "Chip Pearson" <chip@cpearson.com> wrote in message
    > news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    >> I'm not sure what you mean by a text box from the Drawing
    >> toolbar. However, if you have a regular MSForms textbox on a
    >> user form, you can change the Font property in a variety of
    >> ways, e.g.,
    >>
    >> Me.TextBox1.Font.Underline = True
    >> Me.TextBox1.Font.Italic = True
    >> Me.TextBox1.Font.Name = "Times New Roman"
    >> Me.TextBox1.Font.Size = 16
    >>
    >>
    >>
    >> --
    >> Cordially,
    >> Chip Pearson
    >> Microsoft MVP - Excel
    >> Pearson Software Consulting, LLC
    >> www.cpearson.com
    >>
    >>
    >> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    >> news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    >>> With a textbox (from the Drawing toolbar) on a Userform
    >>> can I allow the user to select some of their text and :
    >>>
    >>> 1. Change the Font
    >>> 2. Change the Font size
    >>> 3. Underline it
    >>> 4. Italicise it
    >>>
    >>> Regards.
    >>>

    >>
    >>

    >
    >




  6. #6
    Stuart
    Guest

    Re: Further Userform questions

    Many thanks to you both.
    Now I understand.

    Regards.

    "Chip Pearson" <chip@cpearson.com> wrote in message
    news:uk6VRBKMFHA.3356@TK2MSFTNGP12.phx.gbl...
    > Just use the Textbox control from the Toolbox in the VBA editor. The user
    > can't change the properties of the text box directly. You would have to
    > provide command buttons that would make the requested changes via code
    > similar to what I posted earlier.
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    >> Apologies, that is what I meant.
    >> For further clarity..........can the user make these changes after the
    >> form is displayed?
    >>
    >> Or can/must I use an ActiveX control?
    >>
    >> Regards and thanks
    >>
    >> "Chip Pearson" <chip@cpearson.com> wrote in message
    >> news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    >>> I'm not sure what you mean by a text box from the Drawing toolbar.
    >>> However, if you have a regular MSForms textbox on a user form, you can
    >>> change the Font property in a variety of ways, e.g.,
    >>>
    >>> Me.TextBox1.Font.Underline = True
    >>> Me.TextBox1.Font.Italic = True
    >>> Me.TextBox1.Font.Name = "Times New Roman"
    >>> Me.TextBox1.Font.Size = 16
    >>>
    >>>
    >>>
    >>> --
    >>> Cordially,
    >>> Chip Pearson
    >>> Microsoft MVP - Excel
    >>> Pearson Software Consulting, LLC
    >>> www.cpearson.com
    >>>
    >>>
    >>> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    >>> news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    >>>> With a textbox (from the Drawing toolbar) on a Userform
    >>>> can I allow the user to select some of their text and :
    >>>>
    >>>> 1. Change the Font
    >>>> 2. Change the Font size
    >>>> 3. Underline it
    >>>> 4. Italicise it
    >>>>
    >>>> Regards.
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >




  7. #7
    Stuart
    Guest

    Re: Further Userform questions

    Nope, I cannot make this work.
    Provide a Control to change all the text in some way seems ok, but letting
    user select/highlight some of the text and alter their selection....that I
    cannot see.

    Regards.

    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:ubgV1FKMFHA.2136@TK2MSFTNGP14.phx.gbl...
    > Many thanks to you both.
    > Now I understand.
    >
    > Regards.
    >
    > "Chip Pearson" <chip@cpearson.com> wrote in message
    > news:uk6VRBKMFHA.3356@TK2MSFTNGP12.phx.gbl...
    >> Just use the Textbox control from the Toolbox in the VBA editor. The user
    >> can't change the properties of the text box directly. You would have to
    >> provide command buttons that would make the requested changes via code
    >> similar to what I posted earlier.
    >>
    >>
    >> --
    >> Cordially,
    >> Chip Pearson
    >> Microsoft MVP - Excel
    >> Pearson Software Consulting, LLC
    >> www.cpearson.com
    >>
    >> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    >> news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    >>> Apologies, that is what I meant.
    >>> For further clarity..........can the user make these changes after the
    >>> form is displayed?
    >>>
    >>> Or can/must I use an ActiveX control?
    >>>
    >>> Regards and thanks
    >>>
    >>> "Chip Pearson" <chip@cpearson.com> wrote in message
    >>> news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    >>>> I'm not sure what you mean by a text box from the Drawing toolbar.
    >>>> However, if you have a regular MSForms textbox on a user form, you can
    >>>> change the Font property in a variety of ways, e.g.,
    >>>>
    >>>> Me.TextBox1.Font.Underline = True
    >>>> Me.TextBox1.Font.Italic = True
    >>>> Me.TextBox1.Font.Name = "Times New Roman"
    >>>> Me.TextBox1.Font.Size = 16
    >>>>
    >>>>
    >>>>
    >>>> --
    >>>> Cordially,
    >>>> Chip Pearson
    >>>> Microsoft MVP - Excel
    >>>> Pearson Software Consulting, LLC
    >>>> www.cpearson.com
    >>>>
    >>>>
    >>>> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    >>>> news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    >>>>> With a textbox (from the Drawing toolbar) on a Userform
    >>>>> can I allow the user to select some of their text and :
    >>>>>
    >>>>> 1. Change the Font
    >>>>> 2. Change the Font size
    >>>>> 3. Underline it
    >>>>> 4. Italicise it
    >>>>>
    >>>>> Regards.
    >>>>>
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >




  8. #8
    Bob Phillips
    Guest

    Re: Further Userform questions

    Highlighting it would be tricky, you would need to have an array of controls
    for different textboxes, maybe dropdowns for fonts, sizes, etc. Could get
    quite complex.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:eKJnQSKMFHA.1472@TK2MSFTNGP14.phx.gbl...
    > Nope, I cannot make this work.
    > Provide a Control to change all the text in some way seems ok, but letting
    > user select/highlight some of the text and alter their selection....that I
    > cannot see.
    >
    > Regards.
    >
    > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > news:ubgV1FKMFHA.2136@TK2MSFTNGP14.phx.gbl...
    > > Many thanks to you both.
    > > Now I understand.
    > >
    > > Regards.
    > >
    > > "Chip Pearson" <chip@cpearson.com> wrote in message
    > > news:uk6VRBKMFHA.3356@TK2MSFTNGP12.phx.gbl...
    > >> Just use the Textbox control from the Toolbox in the VBA editor. The

    user
    > >> can't change the properties of the text box directly. You would have to
    > >> provide command buttons that would make the requested changes via code
    > >> similar to what I posted earlier.
    > >>
    > >>
    > >> --
    > >> Cordially,
    > >> Chip Pearson
    > >> Microsoft MVP - Excel
    > >> Pearson Software Consulting, LLC
    > >> www.cpearson.com
    > >>
    > >> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > >> news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    > >>> Apologies, that is what I meant.
    > >>> For further clarity..........can the user make these changes after the
    > >>> form is displayed?
    > >>>
    > >>> Or can/must I use an ActiveX control?
    > >>>
    > >>> Regards and thanks
    > >>>
    > >>> "Chip Pearson" <chip@cpearson.com> wrote in message
    > >>> news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    > >>>> I'm not sure what you mean by a text box from the Drawing toolbar.
    > >>>> However, if you have a regular MSForms textbox on a user form, you

    can
    > >>>> change the Font property in a variety of ways, e.g.,
    > >>>>
    > >>>> Me.TextBox1.Font.Underline = True
    > >>>> Me.TextBox1.Font.Italic = True
    > >>>> Me.TextBox1.Font.Name = "Times New Roman"
    > >>>> Me.TextBox1.Font.Size = 16
    > >>>>
    > >>>>
    > >>>>
    > >>>> --
    > >>>> Cordially,
    > >>>> Chip Pearson
    > >>>> Microsoft MVP - Excel
    > >>>> Pearson Software Consulting, LLC
    > >>>> www.cpearson.com
    > >>>>
    > >>>>
    > >>>> "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > >>>> news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    > >>>>> With a textbox (from the Drawing toolbar) on a Userform
    > >>>>> can I allow the user to select some of their text and :
    > >>>>>
    > >>>>> 1. Change the Font
    > >>>>> 2. Change the Font size
    > >>>>> 3. Underline it
    > >>>>> 4. Italicise it
    > >>>>>
    > >>>>> Regards.
    > >>>>>
    > >>>>
    > >>>>
    > >>>
    > >>>
    > >>
    > >>

    > >
    > >

    >
    >




  9. #9
    Andy Pope
    Guest

    Re: Further Userform questions

    I'm pretty sure you can not apply formating to sections of the text in a
    textbox control. It's all or nothing.

    Cheers
    Andy


    Stuart wrote:
    > Nope, I cannot make this work.
    > Provide a Control to change all the text in some way seems ok, but letting
    > user select/highlight some of the text and alter their selection....that I
    > cannot see.
    >
    > Regards.
    >
    > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > news:ubgV1FKMFHA.2136@TK2MSFTNGP14.phx.gbl...
    >
    >>Many thanks to you both.
    >>Now I understand.
    >>
    >>Regards.
    >>
    >>"Chip Pearson" <chip@cpearson.com> wrote in message
    >>news:uk6VRBKMFHA.3356@TK2MSFTNGP12.phx.gbl...
    >>
    >>>Just use the Textbox control from the Toolbox in the VBA editor. The user
    >>>can't change the properties of the text box directly. You would have to
    >>>provide command buttons that would make the requested changes via code
    >>>similar to what I posted earlier.
    >>>
    >>>
    >>>--
    >>>Cordially,
    >>>Chip Pearson
    >>>Microsoft MVP - Excel
    >>>Pearson Software Consulting, LLC
    >>>www.cpearson.com
    >>>
    >>>"Stuart" <sgbooth@totalise.co.uk> wrote in message
    >>>news:extNI%23JMFHA.2604@TK2MSFTNGP10.phx.gbl...
    >>>
    >>>>Apologies, that is what I meant.
    >>>>For further clarity..........can the user make these changes after the
    >>>>form is displayed?
    >>>>
    >>>>Or can/must I use an ActiveX control?
    >>>>
    >>>>Regards and thanks
    >>>>
    >>>>"Chip Pearson" <chip@cpearson.com> wrote in message
    >>>>news:On5VL6JMFHA.3832@TK2MSFTNGP12.phx.gbl...
    >>>>
    >>>>>I'm not sure what you mean by a text box from the Drawing toolbar.
    >>>>>However, if you have a regular MSForms textbox on a user form, you can
    >>>>>change the Font property in a variety of ways, e.g.,
    >>>>>
    >>>>>Me.TextBox1.Font.Underline = True
    >>>>>Me.TextBox1.Font.Italic = True
    >>>>>Me.TextBox1.Font.Name = "Times New Roman"
    >>>>>Me.TextBox1.Font.Size = 16
    >>>>>
    >>>>>
    >>>>>
    >>>>>--
    >>>>>Cordially,
    >>>>>Chip Pearson
    >>>>>Microsoft MVP - Excel
    >>>>>Pearson Software Consulting, LLC
    >>>>>www.cpearson.com
    >>>>>
    >>>>>
    >>>>>"Stuart" <sgbooth@totalise.co.uk> wrote in message
    >>>>>news:uXgCy2JMFHA.2384@tk2msftngp13.phx.gbl...
    >>>>>
    >>>>>>With a textbox (from the Drawing toolbar) on a Userform
    >>>>>>can I allow the user to select some of their text and :
    >>>>>>
    >>>>>>1. Change the Font
    >>>>>>2. Change the Font size
    >>>>>>3. Underline it
    >>>>>>4. Italicise it
    >>>>>>
    >>>>>>Regards.
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>

    >>

    >
    >


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

  10. #10
    Harald Staff
    Guest

    Re: Further Userform questions

    Hi

    The Microsoft controls that allow formatting on selected text only are the
    RichTextbox control (using rtf) and the DHTMLEdit control (using html).

    HTH. Best wishes Harald

    "Stuart" <sgbooth@totalise.co.uk> skrev i melding
    news:eKJnQSKMFHA.1472@TK2MSFTNGP14.phx.gbl...
    > Nope, I cannot make this work.
    > Provide a Control to change all the text in some way seems ok, but letting
    > user select/highlight some of the text and alter their selection....that I
    > cannot see.
    >




+ 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