+ Reply to Thread
Results 1 to 6 of 6

Set text in text box based on value of selected cell?

  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Set text in text box based on value of selected cell?

    Is it possible to set the text in a text box on a user form based on the value of the selected cell when the form is activated?

    For example:
    A1 has a value of 2.125

    If A1 is selected when the form is activated, the text box in the form has 2.125

    Thanks for helping me.

    Excel 2000
    Last edited by proepert; 05-03-2010 at 02:36 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Set text in text box based on value of selected cell?

    Try This in the UserForm
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: Set text in text box based on value of selected cell?

    Let me explain more, sorry.

    No matter what cell is selected, I need that cell's value to go into the textbox.

    It could be any cell on the current sheet.

    Maybe a better question is "how do I find the address of the selected cell when the form is activated"?

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Set text in text box based on value of selected cell?

    Maybe Like this???
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Registered User
    Join Date
    05-03-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Set text in text box based on value of selected cell?

    This will provide you with the value of whatever cell is selected at the time it runs across this line of code:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: Set text in text box based on value of selected cell?

    Thank you very much.

+ 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