+ Reply to Thread
Results 1 to 2 of 2

I have a VB related question,...

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

    Question I have a VB related question,...

    I 'm relatively new to VB programming & My question was, how do you set the control source or rowsource of a text box so that you can make it display data.
    I have a case where I am trying to display sub-totals from an excel spreadsheet into a text-box on a User-form.
    And is it possible to make a selection in one listbox and have a corresponding selection highlighted in another listbox?
    Any help would be appreciated, thanx.

    javabeens

  2. #2
    Tom Ogilvy
    Guest

    Re: I have a VB related question,...

    for a textbox, you use the controlsource

    Private Sub Userform_Initialize()
    Textbox1.ControlSource = "Sheet1!A1"
    End Sub

    Listbox2.Value = Listbox1.Value

    --
    Regards,
    Tom Ogilvy


    "javabeens" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I 'm relatively new to VB programming & My question was, how do you set
    > the control source or rowsource of a text box so that you can make it
    > display data.
    > I have a case where I am trying to display sub-totals from an excel
    > spreadsheet into a text-box on a User-form.
    > And is it possible to make a selection in one listbox and have a
    > corresponding selection highlighted in another listbox?
    > Any help would be appreciated, thanx.
    >
    > javabeens
    >
    >
    > --
    > javabeens
    > ------------------------------------------------------------------------
    > javabeens's Profile:

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




+ 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