Pop up message on creation of new account

123456

New Member
Joined
Dec 9, 2005
Messages
5
Hi Help on the following would be most appreciated

How do I write a code that allows the user to enter details into the input box and then once those details are entered, i would like a message to pop up stating that a new account has been created with the details entered.

For eg....name JOHN BROWN ( NEW ACCOUNT)
After the user enters the details into the input box...i would like a message to pop up and state that ....new account for John Brown has been created !
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
does this help
Code:
Sub test()
Dim res As String
res = InputBox("Enter name for New Account")
If Len(res) > 0 Then
    MsgBox "A new account for " & res & _
            " has been created"
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top