VB Code:
  1. Private Sub Command1_Click()
  2.     Dim p As String
  3.     p = InputBox("Enter Your Message")
  4.    
  5.     If p <> "" Then
  6.         MsgBox p
  7.     Else
  8.         MsgBox "You didnt enter anything"
  9.     End If
  10. End Sub

but how can i make the inputs message box title be "Enter a name"

like in msgbox we do..

MsgBox "Hello", vbOkOnly, "WindowTitleHere"