S
Sandy
Hi
The following fails at the line indicated between asterisks - can anyone
tell me why and offer a solution
Sub New_Name()
Application.EnableEvents = False
Application.Run "Open_All_Sheets"
Dim inputText As String
inputText = Application.InputBox("Enter name here", _
"Persons Name", , , , , 2)
Sheets("Data Input").Range("D1:H1").Value = inputText
Worksheets("Data Input").Buttons("Name_Button").Visible = False
'Worksheets("Data Input").Buttons("Name_Button").Visible = True
Application.Run "Lock_All_Sheets"
**********
ThisWorkbook.SaveCopyAs "Personal Data-" & inputText.xls
**********
ThisWorkbook.Close SaveChanges:=False
Application.EnableEvents = True
End Sub
The following fails at the line indicated between asterisks - can anyone
tell me why and offer a solution
Sub New_Name()
Application.EnableEvents = False
Application.Run "Open_All_Sheets"
Dim inputText As String
inputText = Application.InputBox("Enter name here", _
"Persons Name", , , , , 2)
Sheets("Data Input").Range("D1:H1").Value = inputText
Worksheets("Data Input").Buttons("Name_Button").Visible = False
'Worksheets("Data Input").Buttons("Name_Button").Visible = True
Application.Run "Lock_All_Sheets"
**********
ThisWorkbook.SaveCopyAs "Personal Data-" & inputText.xls
**********
ThisWorkbook.Close SaveChanges:=False
Application.EnableEvents = True
End Sub