R
robertguy
Hi can any please advise me why my Macro is not working
The Macro allows users to Input dates via a message box which shoul
then be input in cells B1, B2, B3 & B4 - but this does not happen - I
addition when I try to change the sheet name in the macro from Sheet2 t
another name i.e. mydata it displays an error
Sub Input_Dates1()
'
'
MyName = InputBox("Please Enter Date for Q1")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$1").Value = MyName
MyName = InputBox("Please Enter Date for Q2")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$2").Value = MyName
MyName = InputBox("Please Enter Date for Q3")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$3").Value = MyName
MyName = InputBox("Please Enter Date for Q3")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$4").Value = MyName
End Sub
Any help would be appreciated
Excel version 2000
Many thanks
Ro
The Macro allows users to Input dates via a message box which shoul
then be input in cells B1, B2, B3 & B4 - but this does not happen - I
addition when I try to change the sheet name in the macro from Sheet2 t
another name i.e. mydata it displays an error
Sub Input_Dates1()
'
'
MyName = InputBox("Please Enter Date for Q1")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$1").Value = MyName
MyName = InputBox("Please Enter Date for Q2")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$2").Value = MyName
MyName = InputBox("Please Enter Date for Q3")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$3").Value = MyName
MyName = InputBox("Please Enter Date for Q3")
If MyName = "" Then
Exit Sub
End If
Sheet2.Range("$B$4").Value = MyName
End Sub
Any help would be appreciated
Excel version 2000
Many thanks
Ro