My Inventory workbook has been working well for months. It has a code in the opening that checks for my login ID. It will show a worksheet for me to edit but not anyone else.
2 questions:
1) How do I add 2 more names so they may edit.
2) The other users are now getting the macro slowing to look for the Environ name and then it crashes.
It isn't supposed to and didn't befor last week.
Help!
Code for workbook open below:
Any ideas?
2 questions:
1) How do I add 2 more names so they may edit.
2) The other users are now getting the macro slowing to look for the Environ name and then it crashes.
It isn't supposed to and didn't befor last week.
Help!
Code for workbook open below:
Code:
Private Sub Workbook_Open()
Dim UsedRange
Worksheets("Inventory").Activate
ActiveSheet.UsedRange.Select
ActiveSheet.UsedRange.Copy
Range("A2").Select
Worksheets("Empty Boxes").Activate
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A2").Select
Application.CutCopyMode = False
Worksheets("Inventory").Activate
Range("A1").Select
Application.CutCopyMode = False
Worksheets("Start").Activate
Range("E3").Select
Worksheets("Inventory").Visible = xlSheetVisible
If Environ("username") = "dthibode" Then
'testing - show the sheet
Worksheets("Inventory").Visible = xlSheetVisible
Else
'standard user - completely hide sheet
Worksheets("Inventory").Visible = xlSheetHidden
End If
End Sub
Any ideas?