+ Reply to Thread
Results 1 to 3 of 3

Help with Text Boxes

  1. #1
    Registered User
    Join Date
    01-05-2007
    Posts
    3

    Help with Text Boxes

    Hi,

    I have 5 - 6 lines of text, with some numbers in between, in a text box. Right now the numbers are hard coded.

    I am wondering if I could replace the hard coded numbers with references to a cell. I cannot use the formula bar as that would prevent me from formatting the text.

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Rockets
    Hi,

    I have 5 - 6 lines of text, with some numbers in between, in a text box. Right now the numbers are hard coded.

    I am wondering if I could replace the hard coded numbers with references to a cell. I cannot use the formula bar as that would prevent me from formatting the text.

    Any help would be greatly appreciated.

    Thanks
    even if the numbers were changed by VB code the format would still be lost.

    You can have a formula to change the numbers, or, Text to format.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Private Sub UserForm_Activate()
    Me.TextBox1.Text = "The value in cell A1 is " & Range("a1")
    End Sub

+ 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