Results 1 to 13 of 13

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

Threaded View

  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:

    Private Sub Workbook_Open()
    
    With Sheet1.ListBox1
       .AddItem "AAA"
       .AddItem "BBB"
       .AddItem "CCC"
       .LinkedCell = "$A$5"
       
    End With
    
    End Sub
    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.

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