+ Reply to Thread
Results 1 to 3 of 3

Message Box Error

  1. #1
    J.wills
    Guest

    Message Box Error

    Hello,

    I am getting syntax error in this following code.

    MsgBox("Please enter text!",vbOKOnly, "Filter Info")

    can anyone please help why i m getting this error.

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Message Box Error

    If you're not assigning the result of the MsgBox to be anything which I presume you're not given it's vbokonly then it would be:

    Please Login or Register  to view this content.
    If you were say using vbYesNo then you may be looking to use the result - ie assign it at which point:

    Please Login or Register  to view this content.
    or put anpther way...

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Message Box Error

    J.wills

    Please take a couple of minutes and read ALL theForum Rules then wrap your VBA code (Rule 3)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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