bloodmilksky
Board Regular
- Joined
- Feb 3, 2016
- Messages
- 202
Hi Guys, I hope you are all well today.
I am trying to use the below for an order form so that the user enters a Post Code Or AC number and this goes into cell E3 where the form will then produce the customers AC details. but for some reason the Value is not going into the Cell after it is being entered.
Could anyone help please?
I am trying to use the below for an order form so that the user enters a Post Code Or AC number and this goes into cell E3 where the form will then produce the customers AC details. but for some reason the Value is not going into the Cell after it is being entered.
Code:
Sub Would_You_Like_To_Place_An_Order()
Dim myValue As Variant
Msg = "Would You Like To Place An Order ? " & Application.UserName
Ans = MsgBox(Msg, vbYesNo)
If Ans = vbNo Then
Application.DisplayAlerts = False
ThisWorkbook.Save
Application.DisplayAlerts = True
Application.Quit
End If
If Ans = vbYes Then InputBox ("Please enter Account Number Or Postcode")
Range("E3").Value = myValue
End Sub
Could anyone help please?