Hi,
I am working on a Macro and I need assistance with a message box for the report. I would like the macro to prompt the user by saying " What Month and Year are you running?" The user will then enter something like January 2013. The Macro will then take the input and insert it into cell D1 with "Month:" in front of it so the finished data will say "Month: January 2013".
I have the following macro to create the message box but don't know how to insert the input value into cell D1 with the word "Month:" in front of it. the whole thing should be in bold font.
Thanks
Sub MSG_box()
Dim MyInput As String
MyInput = InputBox("What Month and Year are you running?", _
"MyInputTitle", "Enter Month and Year ie. January 2013")
If MyInput = "Enter your input text HERE" Or _
MyInput = "" Then
Exit Sub
End If
End Sub
I am working on a Macro and I need assistance with a message box for the report. I would like the macro to prompt the user by saying " What Month and Year are you running?" The user will then enter something like January 2013. The Macro will then take the input and insert it into cell D1 with "Month:" in front of it so the finished data will say "Month: January 2013".
I have the following macro to create the message box but don't know how to insert the input value into cell D1 with the word "Month:" in front of it. the whole thing should be in bold font.
Thanks
Sub MSG_box()
Dim MyInput As String
MyInput = InputBox("What Month and Year are you running?", _
"MyInputTitle", "Enter Month and Year ie. January 2013")
If MyInput = "Enter your input text HERE" Or _
MyInput = "" Then
Exit Sub
End If
End Sub