EliseFreedman
Programmer
Hi there
I am having a bit of bother with the listboxes in my spreadsheet.
The top half of my spreadsheet contains a list of risks. At a particular point in time, only some of those risks will be
current whilst others are not applicable. I have got code to
hide the non applicable rows (rows 19-49).This works ok.
My problem occurs with the lower half of the spreadsheet where
I have two multiselect listboxes(for highlighting future risks)
I can select from them ok but then when the worksheet is
activated and the relevant rows are hidden, the previously
selected choices in the listboxes disappear.
Is there any way that i can hide the rows in the upper part of
the spreadsheet whilst still retaining the users selected
choices in the listboxes
I am having a bit of bother with the listboxes in my spreadsheet.
The top half of my spreadsheet contains a list of risks. At a particular point in time, only some of those risks will be
current whilst others are not applicable. I have got code to
hide the non applicable rows (rows 19-49).This works ok.
Code:
Dim Cell As Range
For Each Cell In Range("e19:e49")
If Cell.Value = "No" Then
Cell.EntireRow.Hidden = True
End If
Next
My problem occurs with the lower half of the spreadsheet where
I have two multiselect listboxes(for highlighting future risks)
I can select from them ok but then when the worksheet is
activated and the relevant rows are hidden, the previously
selected choices in the listboxes disappear.
Is there any way that i can hide the rows in the upper part of
the spreadsheet whilst still retaining the users selected
choices in the listboxes