deadlyjack
New Member
- Joined
- Aug 21, 2021
- Messages
- 23
- Office Version
- 365
- 2019
- Platform
- Windows
Hi,
I've created a login function for my excel workbook. Where a user that is not an admin logs in, multiple sheets are hidden...
From the visible sheets, the user can add important information, through a Userform, that information once applied will be collected in a hidden spreadsheet.
How do I code acceptance of adding into hidden sheets without revealing them accurately?
Hidden sheets VBA:
________________________________________________________________
I've got brainfreeze right now... So how do I make my Userform accept input to these hidden sheets?
I've created a login function for my excel workbook. Where a user that is not an admin logs in, multiple sheets are hidden...
From the visible sheets, the user can add important information, through a Userform, that information once applied will be collected in a hidden spreadsheet.
How do I code acceptance of adding into hidden sheets without revealing them accurately?
Hidden sheets VBA:
VBA Code:
Global nextID As Integer
VBA Code:
Public Sub GenerateUniqueID()
Dim LargestID() As Integer
Dim i As Integer
ReDim largestID(1 To Worksheets.Count - 1)
For i = 7 To Worksheets.Count
Worksheets(i).Select
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
largestID(i -1) = Application.Max(Selection)
Next i
NextID = Application.Max(largestID) + 1
I've got brainfreeze right now... So how do I make my Userform accept input to these hidden sheets?