+ Reply to Thread
Results 1 to 3 of 3

Variable in MsgBox?

  1. #1
    Registered User
    Join Date
    12-15-2005
    Posts
    23

    Variable in MsgBox?

    i want to display an error messages in a msgbox that says "error: non-match of [the value of the variable that i was testing]."

    i can do text or the variable value if they r on their own, but not as one box.

    can anyone help?

  2. #2
    Rowan Drummond
    Guest

    Re: Variable in MsgBox?

    Try:

    Dim strVar As String
    strVar = "The Value"
    MsgBox "error:" & Chr(10) & "non-match of " & strVar


    Hope this helps
    Rowan

    TheIrishThug wrote:
    > i want to display an error messages in a msgbox that says "error:
    > non-match of [the value of the variable that i was testing]."
    >
    > i can do text or the variable value if they r on their own, but not as
    > one box.
    >
    > can anyone help?
    >
    >


  3. #3
    Registered User
    Join Date
    12-15-2005
    Posts
    23
    thank u, works

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1