+ Reply to Thread
Results 1 to 4 of 4

VBA Prompt Messag Box with IF Function

  1. #1
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Office 2010
    Posts
    344

    VBA Prompt Messag Box with IF Function

    Hu guys,

    I was wondering whether someone can please assist me with the below.

    I have a vba code which prompts out a message box based on a value in cell A1 and which then activtes another Sheet," Sheet 2".

    Please Login or Register  to view this content.
    I would like to amend this slightly so that if the value in cell A1 is greater or equal than 1, a message box will still appear and as soon as the user hits 'OK', the VBA code will stop running.

    Sheet 2 should only be activated, if the value in cell A1 is 0 (i.e. less than 1).



    Would appreciate all your kind help

    Many thanks

    Keibri

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    11,862

    Re: VBA Prompt Messag Box with IF Function

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Office 2010
    Posts
    344

    Re: VBA Prompt Messag Box with IF Function

    Cheers!!! Thanks a lot xladept. That did the trick much appreciated !

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    11,862

    Re: VBA Prompt Messag Box with IF Function

    You're welcome and thanks for the rep!

+ 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