+ Reply to Thread
Results 1 to 3 of 3

Msgbox not working as intended

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Msgbox not working as intended

    I am trying to get a message box to display a string variable before a message, however when I run the sub it only shows the message in quotes, not the variable.

    What am I doing wrong?

    Please Login or Register  to view this content.
    All the message box says is "this should have text before it"
    Last edited by ks100; 12-24-2013 at 09:13 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Msgbox not working as intended

    Please Login or Register  to view this content.

    testing123 without quotes is an empty undefined variable.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Msgbox not working as intended

    Quote Originally Posted by TMShucks View Post
    Please Login or Register  to view this content.

    testing123 without quotes is an empty undefined variable.


    Regards, TMS
    I knew it was something simple, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Nested if formula not working as intended
    By Reibie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-11-2013, 05:59 AM
  2. Select Case possibly not working as intended. (Another strange bug)
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2013, 10:40 AM
  3. [SOLVED] VLOOKUP not working as intended
    By RAS 2112 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2013, 08:58 AM
  4. [SOLVED] SOLVED: Print Macro Not Working As Intended
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2011, 09:22 AM
  5. [SOLVED] macro not working as intended
    By Michael A in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2005, 10:06 PM

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