WebJun 20, 2016 · For Each ws In Worksheets If ws.Name <> wsAllowed.Name Then ws.Visible = xlSheetHidden Next End Sub Function GetAllowedSheet () As Worksheet 'Set the sheet each user is allowed to use here. 'adapt the case statements for correct users and correct sheets to display Select Case Application.UserName Case "User 1" Set … WebJan 18, 2024 · Right Click on the sheet to Hide. Click on View Code. In the VBA window roll down to sheet properties. In the Visible drop down choose Very Hidden. This will ensure that the unhide option is greyed out when …
How to restrict access to worksheets per user - MrExcel Message Board
WebAug 4, 2024 · It looks as though it would require some coding, if you want to automatically hide and show individual sheets based on individual identities I would probably keep it simple, adding a macro that would run when the spreadsheet was opened, look up the user's Windows login name, and use that to decide which sheet to open up. WebJan 10, 2015 · Select 'VBAProject Properties...'. Select 'Protection' tab. Check the Checkbox for 'Lock project for viewing'. Enter and Confirm your password below. Click 'OK'. This will password protect your whole Project if that works for you, but you wouldn't be able to unhide the worksheet unless you entered the Project by typeing the password. mail free et outlook
Lock or unlock specific areas of a protected worksheet
WebTo hide a sheet: Open a spreadsheet in Google Sheets. Click the sheet you want to hide. On the sheet tab, click the Down arrow . Click Hide sheet. This option won’t show if your spreadsheet doesn’t contain two or more sheets. To unhide a sheet: Click View Show [name]. If your spreadsheet doesn’t have any hidden sheets, this option will be ... WebALT+F11 to open VB editor. Double click 'ThisWorkbook' and paste the code below in on the right. Change the name at the start of the code to the correct one and close VB editor. The password is currently set to a case sensitive MyPass. Private Sub Workbook_SheetActivate (ByVal Sh As Object) Dim MySheets As String, Response As String. WebOct 28, 2010 · Here is what you do in Excel 2007: In your sheet of interest, go to Home ribbon -> Format -> Hide & Unhide -> Hide Sheet and hide your sheet. Go to Review ribbon -> Protect Workbook, make sure Structure is selected, and enter your password of choice. Once this is done, the sheet is hidden and cannot be unhidden without the password. oak furnitureland solihull