+ 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
    Microsoft 365
    Posts
    383

    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
    12,378

    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
    Microsoft 365
    Posts
    383

    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
    12,378

    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)

Similar Threads

  1. List Box with Prompt Function
    By christan in forum Excel General
    Replies: 4
    Last Post: 09-24-2013, 07:10 AM
  2. Function arguments prompt causing problems
    By bryan641 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2010, 08:55 AM
  3. Define argument prompt on Function module
    By teachMeExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2009, 11:24 AM
  4. User Defined Function help prompt
    By Janodi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2006, 12:45 PM
  5. [SOLVED] Can the Save Changes prompt be bypassed when using a volatile function?
    By puakeni1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2006, 06:10 PM
  6. [SOLVED] Is there a way to prompt a list in a function?
    By Victor B of TDC in forum Excel General
    Replies: 0
    Last Post: 02-09-2006, 07:50 PM
  7. Auto-prompt/complete (?) function for number values
    By Raj Mazumdar in forum Excel General
    Replies: 1
    Last Post: 01-10-2006, 02:50 PM
  8. [SOLVED] adding cells that contain formulas that have returned error messag
    By Daniel R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2005, 04: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