• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

list box not populating

ysherriff

Member
I am updating this spreadsheet from a data validation drop down to list box but for some reason, my list box data is not being shown on the listbox. The listbox data is being added via vba.

The vba code is located on sheet ("corporate dashboard")

This is my first time doing a listbox with up and down command button, i.e drill down. I really appreciate the help to show me what i am doing wrong.

Thanks
 

Attachments

  • DirectConnect Performance - MTD (October2014) v.03 - test....zip
    834.9 KB · Views: 6
A few things going on here

1. Change the following code as marked by the comment

Code:
Private Sub Worksheet_Activate()

  Dim strLevel As String
  strLevel = getSelectedLevel

  Select Case strLevel
  Case "GLC DIRECTCONNECT" ' This used to say "GLC-DIRECTCONNECT"
  Call addItemFormListBox("LIST_DIRECTCONNECT")
   
  Case "MARKET"
  Call addItemFormListBox("LIST_MARKET")
   
  Case "LIVINGCENTER"
  Call addItemFormListBox("LIST_LIVINGCENTER")
  End Select

End Sub

2. Check the Named Formula
Check the Named Formula LIST_DIRECTCONNECT
I think it should be
=OFFSET('Trend Control'!$A$1,1,,COUNTA('Trend Control'!$A:$A)-1,1)
 
HUI, how are you? I am getting a invalid property value. What does that mean and what am i doing wrong? I apologize. This is my first foray into using listbox and i retrieved this vba code from a former colleague and trying to adjust it.

i appreciate your help.
 

Attachments

  • DirectConnect Performance - MTD (October2014) v.03 - test....zip
    843.5 KB · Views: 3
It is working fine
But there are no values under
GLC-DIRECTCONNECT

can you tell us under what situations / values it isn't working
 
Back
Top