+ Reply to Thread
Results 1 to 2 of 2

Editable Active X Textbox Linked to Active X List Box

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2010
    Posts
    21

    Editable Active X Textbox Linked to Active X List Box

    Hi all,

    I suspect this should be pretty simple, I would like to be able to populate a text box based on a selection made in a list box and the textbox be editable. So I have a list box already linked to ListFillRange A1 to A4, and I can link the text box to B1 but how can I link the text box to the list box for a dynamic result? Below is an example of the data.

    A1:2016 | B1: Please enter text here
    A2:2017 | B2: Text has been entered here
    A3:2018 | B3: 2018 will be a great year...
    A4:2019 | B4: 2019 will be...

    Thank you in advance for any help! I have tried Google but can not find a solution that allows the text to be editable.

    Bowater
    Last edited by bowater; 12-08-2016 at 07:44 PM.

  2. #2
    Registered User
    Join Date
    05-31-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Editable Active X Textbox Linked to Active X List Box

    I found a solution by customising VBA that set the textbox value to instead set the textbox LinkedCell, see below:

    Private Sub ListBox1_Change()
    TextBox1.LinkedCell = "'Constants - do not amend'" & "!" & Range("B" & ListBox1.ListIndex + 1).Address
    End Sub

    Bowater

+ 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. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  2. [SOLVED] Add Text in Active TextBox
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2015, 05:10 AM
  3. [SOLVED] script to set linked cell on active x checkbox
    By MATT.B in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-27-2015, 11:07 AM
  4. Value of Active TextBox in a UserForm
    By j_Southern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2015, 10:37 AM
  5. Unable to send user-editable text to Outlook email body based on active cell.
    By m0meehan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2014, 01:51 PM
  6. Replies: 2
    Last Post: 12-23-2012, 09:26 AM
  7. Replies: 1
    Last Post: 12-03-2012, 08:55 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