+ Reply to Thread
Results 1 to 5 of 5

messagebox help

  1. #1
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    messagebox help

    Hi
    I need a help. I have a message box (Y/N) when i run a macro in my sheet1

    I want the following to be happened..

    If yes, I need to check the value in cell A1 of sheet2.
    IF Sheet2 A1>0, then I need to type "error" in cell B1
    else(if value of sheet2 A1=0) then type "ok" in cell B1

    If message box answer is "No" then nothing to do ( select cell A1..)

    please help me...
    Thanku
    Last edited by SMILE; 08-11-2011 at 06:41 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: messagebox help

    Something like this?

    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: messagebox help

    Dear Colin

    Thanks for the reply but still I am having some problem with the codes. I have modified according to my requirement. please see what is wrong and help me..
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: messagebox help

    Sure,

    Where you have lines like this:

    Please Login or Register  to view this content.
    It should be:
    Please Login or Register  to view this content.
    Same applies for others where you are using the worksheet's name.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: messagebox help

    This might be what you want
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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