Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excel-VBA如何根据windows用户登录参数隐藏Excel工作表中的行?
根据需要更改用户名和范围:
If (Environ("Username") = "yourusername0810") Then Range("A1:A5").EntireRow.Hidden = True End If