SalfordLad06
New Member
- Joined
- Mar 22, 2006
- Messages
- 13
Help! I've searched a few message threads but can't find anything that has helped so far.
I have a shared workbook located on a network. The workbook has multiple worksheets containing private information about employees' Annual Leave and sickness etc. To access the network, we each have to log into windows using our usernames and passwords. I have tried in vain to write some simple vba code that allow managers (identified by their username) to view all worksheets, yet only allow staff to view their own particular worksheet using If Then Else in the This Workbook in Project Explorer.
I am getting lost in lines and lines of personalised code for each user, and I know instinctively that there must be an easier way to resolve this.
ANY HELP GREATLY APPRECIATED! Thanks
I have a shared workbook located on a network. The workbook has multiple worksheets containing private information about employees' Annual Leave and sickness etc. To access the network, we each have to log into windows using our usernames and passwords. I have tried in vain to write some simple vba code that allow managers (identified by their username) to view all worksheets, yet only allow staff to view their own particular worksheet using If Then Else in the This Workbook in Project Explorer.
I am getting lost in lines and lines of personalised code for each user, and I know instinctively that there must be an easier way to resolve this.
ANY HELP GREATLY APPRECIATED! Thanks