Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'v a sheet with several rows and on those rows action buttons (which I created with the control toolbar). When opening my excel file I want several rows in the sheet and the actions buttons on those rows to be hidden. To unhide them another bottun must be clicked and the user must be prompted for a password. My code is like below, the problem is that the buttons won't hide. Sub hide_selection() Range("9:9,11:11").Select Selection.EntireRow.Hidden = True End Sub Sub unhide_selection() pwd = "password" i_pwd = InputBox("password please") Select Case i_pwd Case pwd Range("9:9,11:11").Select Selection.EntireRow.Hidden = False Case Else MsgBox "incorrect" End Select End Sub Anyone a solution? Bernd |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rightclick on each button
choose Format control On the properties tab, choose move and size with cells. bernd wrote: Hello, I'v a sheet with several rows and on those rows action buttons (which I created with the control toolbar). When opening my excel file I want several rows in the sheet and the actions buttons on those rows to be hidden. To unhide them another bottun must be clicked and the user must be prompted for a password. My code is like below, the problem is that the buttons won't hide. Sub hide_selection() Range("9:9,11:11").Select Selection.EntireRow.Hidden = True End Sub Sub unhide_selection() pwd = "password" i_pwd = InputBox("password please") Select Case i_pwd Case pwd Range("9:9,11:11").Select Selection.EntireRow.Hidden = False Case Else MsgBox "incorrect" End Select End Sub Anyone a solution? Bernd -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks, exactly the information I needed!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide and password protect a worksheet | Excel Discussion (Misc queries) | |||
Password Protect - put password in a cell in the workbook | Excel Programming | |||
How do you permanently hide and password protect a column? | Excel Discussion (Misc queries) | |||
hide a column in a worksheet and password protect | Excel Discussion (Misc queries) | |||
Excel password but cant hide the sheets before entering password | Excel Programming |