Results 1 to 11 of 11

Hiding/Showing Rows With Combobox

Threaded View

  1. #1
    Registered User
    Join Date
    11-21-2008
    Location
    Vancouver
    MS-Off Ver
    Office 2013
    Posts
    11

    Hiding/Showing Rows With Combobox

    Hi,

    I am trying to hide/show a static set of rows based on the value chosen within a combobox.

    The combobox has a list of names and one blank. The blank is selected by default, which renders the rows hidden. When a user selects a name in the combobox the rows will be shown.

    I got some help on this, which allowed me to hide the rows when the workbook was activated and when the worksheet was activated, but the code to show/hide the rows based on the combobox value is not working.

    It is:

    Private Sub CBO_Person_Click()
    If Me.CBO_Person.ListIndex <> -1 Then
        Me.Rows("6:29").EntireRow.Hidden = _
            (Me.CBO_Person.ListIndex < 1)
    End If
    End Sub
    I keep getting Compile Error: Invalid use of ME keyword.

    Any ideas?

    This is using a control toolbox combobox and not a form toolbox combobox. If possible, I'd prefer to use the form toolbox combobox as I want to use its Cell Link property to populate a cell with the index of the value chosen for further formulas to work with.

    Thanks!
    Cray
    Last edited by crayadder; 11-21-2008 at 06:42 PM.

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