VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Hi All,
for sheet1, I have placed code that on active sheet password msg will prompt.
Here, Im creating sheet1 copy and renaming with the user name who is logged in.
Therefore, in the red colored code, it asking me input box (2 time) to place password, and we dont want to share password with user's.
How do i place automatic password in Input box here.
for sheet1, I have placed code that on active sheet password msg will prompt.
Here, Im creating sheet1 copy and renaming with the user name who is logged in.
Therefore, in the red colored code, it asking me input box (2 time) to place password, and we dont want to share password with user's.
How do i place automatic password in Input box here.
Code:
Dim ShName As String
Worksheets("Sheet1").Visible = True
[COLOR=#ff0000]Sheets("Sheet1").Select[/COLOR]
With ActiveSheet
[COLOR=#ff0000]ShName = .Name & "Copy"[/COLOR]
.Copy After:=Sheets(Worksheets.Count)
End With