tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi,
Can someone help me with this please? Originally I was having trouble with entering a date in the input box, but that now works really well.
Now I want to add another input box which asks for the user name (see last 2x lines of code below. This part isn't working or looking right. I wouldn't mind if both input boxes came up at the same time, if possible/easy enough to do..
Thank you!
Can someone help me with this please? Originally I was having trouble with entering a date in the input box, but that now works really well.
Now I want to add another input box which asks for the user name (see last 2x lines of code below. This part isn't working or looking right. I wouldn't mind if both input boxes came up at the same time, if possible/easy enough to do..
VBA Code:
Private Sub Post_Journal()
Dim StartDate As Date
Dim MsgDate As String
Dim TitleDate As String
Dim response As String
MsgDate = "Enter date journal posted (d/mm/yy)"
TitleMsg = "Journal Post Date"
curdate = Date
StartDate = Application.InputBox(MsgDate, TitleMsg, FormatDateTime(curdate, vbShortDate), Type:=1)
Range("Z2").Value = StartDate
reponse = InputBox("Enter User Name")
Range("Z1").Value = response
End Sub
Thank you!