ireland13752
Member
Good Morning, I am stuck. Can you please help me?
I have written this code, but am at a loss as to how to actually make what they enter populate in Cell A2.
Or How to make it a mandatory enter, (Loop)
Dim Month As String
Dim p As String
p = "Enter first day of the last month In August enter 07-01-YYYY"
Range("A2").Select
Do
Month = InputBox(Prompt:=p)
Loop Until Month <> ""
FirstSpace = InStr(Month, " ")
MsgBox "Macro Finished"
I worked on this for 2 hours yesterday and another hour today plus read through all sorts of tutorials here and stuff I found on Bing, but cannot find anything that relates to populating a field directly using an inputbox.
I have written this code, but am at a loss as to how to actually make what they enter populate in Cell A2.
Or How to make it a mandatory enter, (Loop)
Dim Month As String
Dim p As String
p = "Enter first day of the last month In August enter 07-01-YYYY"
Range("A2").Select
Do
Month = InputBox(Prompt:=p)
Loop Until Month <> ""
FirstSpace = InStr(Month, " ")
MsgBox "Macro Finished"
I worked on this for 2 hours yesterday and another hour today plus read through all sorts of tutorials here and stuff I found on Bing, but cannot find anything that relates to populating a field directly using an inputbox.