+ Reply to Thread
Results 1 to 6 of 6

Userform text box to display and edit a single cell only

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Userform text box to display and edit a single cell only

    How can I code my Userform so that the TexBox called EmailTo specifically references to cell B1 on the sheet EmailSettings
    The text box should always show only the data in the cell, and change the data when it is changed in the text box.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Userform text box to display and edit a single cell only

    Maybe something like this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Userform text box to display and edit a single cell only

    Thank you, that adds the data to the cells, however when I close and re open the userform I would like that data to show in the TextBoxes again.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Userform text box to display and edit a single cell only

    You could use a macro such as the following to open your userform and write the value of B1 back to the textbox.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Userform text box to display and edit a single cell only

    Thank you that worked. The only change I had to make was to reverse the order, so the Textbox value codes came first (otherwise they still displayed blank).

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Userform text box to display and edit a single cell only

    My pleasure!

+ 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. Need a single command button to display data from 2 Sheets in a UserForm
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2013, 05:30 PM
  2. [SOLVED] Populate cell values into 6 named text boxes in a userform then edit if required
    By How How in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2013, 05:51 AM
  3. Edit batches (tons) of hyperlinks display text
    By Eric Excels in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 08-21-2011, 07:03 PM
  4. display a single cell text from a range
    By royal blue in forum Excel - New Users/Basics
    Replies: 15
    Last Post: 04-06-2009, 02:26 AM
  5. How do you edit the text in a userform-textbox?
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2006, 11:45 AM

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