VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Hello All,
Getting error on this, can someone there to guide. Need correction..
NewSh is Sheet Name. It is also Application.UserName
Getting error on this, can someone there to guide. Need correction..
Code:
Set sht = Application.Workbooks(Application.UserName & "." & "xlsx").Sheets(NewSh)