Vb Help

Posted on 2011-05-11
Last Modified: 2012-05-11
Please can you help.

I want to be able to display the corresponding code in TextBox7 "Location Code"

Textbox 8 is K17:K28 "Datasheet" the corresponding codes are in L17:L28
Question by:Gazza83
    LVL 76

    Accepted Solution

    Does this help?
    Private Sub ListBox1_Change()
        TextBox8.Value = ListBox1.List(ListBox1.ListIndex)
        TextBox7.Value = Sheets("DataSheet").Cells(17 + ListBox1.ListIndex, 12).Value
    End Sub

    Open in new window


    Author Closing Comment

    Thanks for your help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
    This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now