S
Sandy
Hi
I have a macro as follows:-
(The Workbook name is - "Personal Data")
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"
Application.EnableEvents = True
End Sub
What I would like to do is - as part of this macro - have the workbook saved
as
"Personal Data-inputText", where 'inputText' is from the InputBox. Then
have the original file close without saving.
I know I am well out of my depth on this one so your help would be
gratefully appreciated.
Sandy
I have a macro as follows:-
(The Workbook name is - "Personal Data")
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"
Application.EnableEvents = True
End Sub
What I would like to do is - as part of this macro - have the workbook saved
as
"Personal Data-inputText", where 'inputText' is from the InputBox. Then
have the original file close without saving.
I know I am well out of my depth on this one so your help would be
gratefully appreciated.
Sandy