+ Reply to Thread
Results 1 to 5 of 5

Textbox value equals value of selected cell

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    Utah
    MS-Off Ver
    Excel 2013
    Posts
    31

    Textbox value equals value of selected cell

    I have a user form that opens when a user clicks on a command button. The user is then prompted to select a cell within the D column. The value of that cell needs to go into a textbox within the form. Is there a way to do this without having to add another command button in the form that performs that action?

  2. #2
    Registered User
    Join Date
    12-05-2013
    Location
    Utah
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Textbox value equals value of selected cell

    I've uploaded an example. What I am looking for is the user will click on the command button. Then they can select a color like they are prompted for. They do have the ability to chose another color which will overwrite the previous one, but the value needs to go into the textbox.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Textbox value equals value of selected cell

    Maybe something like this:

    Please Login or Register  to view this content.
    and remove TextBox1_Change() code

  4. #4
    Registered User
    Join Date
    12-05-2013
    Location
    Utah
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Textbox value equals value of selected cell

    Thanks a bunch! That works great.

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Textbox value equals value of selected cell

    I was just about to submit before, then I saw that we made the same solution:

    Please Login or Register  to view this content.
    Last edited by berlan; 01-02-2014 at 06:44 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TextBox Value equals worksheet...
    By SunRunnerNY in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-19-2013, 10:47 AM
  2. [SOLVED] Define a Variable that equals the Row Number I have selected when I start the Macro
    By gle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2013, 03:07 PM
  3. [SOLVED] Message box with VBA when cell selected AND other cell equals "X"
    By 97hills in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2013, 10:42 AM
  4. Display in a textbox, the character count of a cell, when the cell is selected
    By Pavan Renjal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-13-2013, 07:11 AM
  5. Highlight all Text in a Textbox when the textbox is selected
    By RPIJG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2005, 03:28 PM

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