+ Reply to Thread
Results 1 to 6 of 6

VBA Help with msgbox

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    wv
    MS-Off Ver
    Excel 2007
    Posts
    22

    VBA Help with msgbox

    I had a homework problem where the user clicks a command button and the first input box asks you what units you want and the next 4 ask you what the flow rate, diameter, viscosity, and density. Ill put my program at the end, but I need to display a message box stating that the user did not put in the correct units at the first input box. My program will display a message box for that, but it still prompts you to input the next 4 values which is not what my professor wants. Also, I need to know how to superscript the "3" in m3 and instead of "*", I need a "raised dot".

    Please Login or Register  to view this content.
    Last edited by bmr8002; 02-22-2012 at 10:13 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: VBA Help with msgbox

    Please take a moment to read the forum rules and edit your post to include code tags.

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Select your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button).
    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    wv
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: VBA Help with msgbox

    I believe i corrected it right now

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: VBA Help with msgbox

    Thanks, maybe like this:

    Please Login or Register  to view this content.
    Dom

  5. #5
    Registered User
    Join Date
    02-22-2012
    Location
    wv
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: VBA Help with msgbox

    thank you. My professor stated that i need to used a "raised dot" instead of a *. Also, he wants me to superscript the 3 in "m3". Can you help me with that?

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: VBA Help with msgbox

    Have a look at using the Chr function. I'll leave you to work out how.

    Dom

+ 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