+ Reply to Thread
Results 1 to 3 of 3

put worksheet values into textbox on form

  1. #1
    Registered User
    Join Date
    07-17-2005
    Posts
    1

    put worksheet values into textbox on form

    I have a form that I'm using to get values to put into various worksheets.

    On some of the forms I'd like to in turn get some calculated values from the worksheets and display them in a textbox.

    I haven't been able to figure out how to do this.

    It seems like it should be simple.

    I can go in the other direction, putting the textbox values from the form into the worksheets.

    Thanks

  2. #2
    Minitman
    Guest

    Re: put worksheet values into textbox on form

    The way that I use is to name the cell (Highlight the cell of
    interest, go to the menu bar and choose Insert>Name>Define. Call the
    cell anything - no spaces!). In your UserForm, when you want the cell
    contents to appear, place something like:

    TextBox.Value = Range("NamedCell").Value

    Hope this helps.

    -Minitman


    On Sun, 17 Jul 2005 02:34:17 -0500, thmort
    <[email protected]> wrote:

    >
    >I have a form that I'm using to get values to put into various
    >worksheets.
    >
    >On some of the forms I'd like to in turn get some calculated values
    >from the worksheets and display them in a textbox.
    >
    >I haven't been able to figure out how to do this.
    >
    >It seems like it should be simple.
    >
    >I can go in the other direction, putting the textbox values from the
    >form into the worksheets.
    >
    >Thanks



  3. #3
    Bob Phillips
    Guest

    Re: put worksheet values into textbox on form

    TextBox1.Text = Worksheets("Sheet2").Range("A1").Value

    --
    HTH

    Bob Phillips

    "thmort" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a form that I'm using to get values to put into various
    > worksheets.
    >
    > On some of the forms I'd like to in turn get some calculated values
    > from the worksheets and display them in a textbox.
    >
    > I haven't been able to figure out how to do this.
    >
    > It seems like it should be simple.
    >
    > I can go in the other direction, putting the textbox values from the
    > form into the worksheets.
    >
    > Thanks
    >
    >
    > --
    > thmort
    > ------------------------------------------------------------------------
    > thmort's Profile:

    http://www.excelforum.com/member.php...o&userid=25296
    > View this thread: http://www.excelforum.com/showthread...hreadid=387819
    >




+ 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