Question : VBA Syntax Help

How can I best change the code below to add additional user names to check against?  Basically it would be the same line below and the only thing different would be the value for UserName.  I also need to write it in a way that says if your user name = "John" then only make sheet "Johns_Sheet" visible.  Thanks!
1:
2:
3:
For Each ws In ThisWorkbook.Worksheets
        If Not ws.Name = WelcomePage And UserName = "myusername" Then ws.Visible = xlSheetVeryHidden
    Next ws

Answer : VBA Syntax Help

Well from the looks of things everything is pointing to the motherboard. Did you do a complete format reinstall ? You might wanna try that as a last resort. A simple repair usually does not rule out hardware errors.

If the format reinstall fails, then the motherboard has failed most likely.
Random Solutions  
 
programming4us programming4us