I need complete solution to create a template for multiple inputs through textboxes and link those with custom text in the back end. Once all the fields are entered i need the complete message to be displayed and to copy that.
for example Text box 1: Insurance, Text box 2: PHone number and text box 3: Agent name
Output should be
Called "input from textbox 1" with phone number "input from textbox2" and spoke to "input from text box 3"
Need solution if i cannot copy message from msg box option. I am very new to VBA and just saw a simple video to create below solution
Private Sub CommandButton1_Click()
Dim Insurance As String
'get the data from the textbox
Insurance = TextBox1.Text
Dim Phone As String
Phone = TextBox2.Text
Dim agent As String
agent = TextBox3.Text
'create the writeup
'add your code here to manipulate the data
'display the writeup in a message box
MsgBox "Notes: Called" & Insurance, "with phone number" & Phone, "and spoke to" & agent
End Sub
error is received in MSGBOX line.