+ Reply to Thread
Results 1 to 4 of 4

showing cell value in textbox

  1. #1
    Registered User
    Join Date
    04-21-2010
    Location
    N. Ireland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unhappy showing cell value in textbox

    Hi, I am new to VBA, however I need to show cell values in a textbox as part of a userform.

    I have created textboxs that put values typed into them into cells, where a simple forumla works out the answer in, say for example cell 'D2'. How do I get a textbox in my userform to show the value of cell D2?

    Should be simple but i can't find anywhere that simply shows the code... anyone help?

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: showing cell value in textbox - help !

    'code in userform:

    Please Login or Register  to view this content.
    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: showing cell value in textbox - help !

    Hi... in the vba code, select your form, then the textbox and in the properties window, look for the ControlSource line. You should be able to enter the cell address as the ControlSource value to tie the display back to the cell.

  4. #4
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: showing cell value in textbox - help !

    FYI...always go with the advice of a an Excel MVP over a part time contributor like me!
    Didn't see Richard's answer before posting mine...

+ 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