MartinS
Active Member
- Joined
- Jun 17, 2003
- Messages
- 489
- Office Version
- 365
- Platform
- Windows
Hi
An odd issue, that only seems to happen the first time you try and as long as the first time shows the lower options - once you move away from the cell and then re-try it works as expected. Unusual Behaviour Following Validation List Selection
So I have a series of Yes/No validation list cells, and depending on the response, the code will hide or show relevant rows lower down the spreadsheet, as well as further rows of these Yes/No responses. Without being able to attach images to my post (I am unable to upload images offsite to link to due to work restrictions), I shall try and explain what is happening.
So the 'default' position is that there are two rows of Yes/No selection visible. The first is set to Yes, the second No.
When the user switches the No to Yes, three rows directly below appear, each again with further Yes/No requests. The selected cell remains the same, i.e. the cell switched from No to Yes, but the dropdown indicator (to the right of the cell) jumps to the last row in the group. Whichever of the three cells are clicked on, the same cell (the one set to Yes) stays selected i.e. surrounded by a green border, the options Yes/No appear below the bottom cell but the response is stored in the selected cell.
If I then swap sheets, or click away from these cells, and then click back and repeat, it works as expected.
Has anyone seen anything similar? FYI the worksheet is protected, and the code to unprotect/protect is called during the show/hide routine.
Many thanks
Martin
An odd issue, that only seems to happen the first time you try and as long as the first time shows the lower options - once you move away from the cell and then re-try it works as expected. Unusual Behaviour Following Validation List Selection
So I have a series of Yes/No validation list cells, and depending on the response, the code will hide or show relevant rows lower down the spreadsheet, as well as further rows of these Yes/No responses. Without being able to attach images to my post (I am unable to upload images offsite to link to due to work restrictions), I shall try and explain what is happening.
So the 'default' position is that there are two rows of Yes/No selection visible. The first is set to Yes, the second No.
When the user switches the No to Yes, three rows directly below appear, each again with further Yes/No requests. The selected cell remains the same, i.e. the cell switched from No to Yes, but the dropdown indicator (to the right of the cell) jumps to the last row in the group. Whichever of the three cells are clicked on, the same cell (the one set to Yes) stays selected i.e. surrounded by a green border, the options Yes/No appear below the bottom cell but the response is stored in the selected cell.
If I then swap sheets, or click away from these cells, and then click back and repeat, it works as expected.
Has anyone seen anything similar? FYI the worksheet is protected, and the code to unprotect/protect is called during the show/hide routine.
Many thanks
Martin