+ Reply to Thread
Results 1 to 13 of 13

List box's macro: Adding index formula to Linked Cell

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    List box's macro: Adding index formula to Linked Cell

    Hi all,

    I have created a list box (xactive control) with macro shown below:

    Please Login or Register  to view this content.
    To complete the list box, when click "AAA" shows 1, click "BBB" shows 2 and click "CCC" shows 3.

    I have searched for two days online that the solution is to add index formula to Linked Cell. However I can not use the index formula since my List Fill Range is in macro.

    Any help would be appreciated.
    Attached Images Attached Images
    Last edited by arlu1201; 02-28-2013 at 09:56 AM.

  2. #2
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Thumbs up Re: List box's macro: Adding index formula to Linked Cell

    Hi

    Maybe this will help
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    Thanks Sniper.

    Do you think you can make A8 to show 1 instead of AAA?

  4. #4
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: List box's macro: Adding index formula to Linked Cell

    You mean like this?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    This is wonderful. If you don't mind, one more request. Can the data be inserted into the macro instead having it on the Excel?

  6. #6
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: List box's macro: Adding index formula to Linked Cell

    It can yes, does this mean that the data in the listbox never changes?

  7. #7
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    Currently that is the full list. The reason for this is to prevent accidental change unless you really want to change it.

  8. #8
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: List box's macro: Adding index formula to Linked Cell

    In that case your original code is 100%
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    Is it possible to transfer my data to your macro? I would like to keep it in one place.

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: List box's macro: Adding index formula to Linked Cell

    DavidRoger,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  11. #11
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: List box's macro: Adding index formula to Linked Cell

    Yes you can just add it here
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    Quote Originally Posted by arlu1201 View Post
    DavidRoger,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    I was looking for how to add the solve. Thanks for your guide. Thanks.

  13. #13
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: List box's macro: Adding index formula to Linked Cell

    Good to know that you are helping really a lot. More than thanks. Thanks.

+ 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