Results 1 to 5 of 5

Message box VBA - trigger to remain constant, need VBA to stop thereafter

Threaded View

  1. #2
    Registered User
    Join Date
    09-24-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Post Re: Message box VBA - trigger to remain constant, need VBA to stop thereafter

    Something like this:
    Private Sub Worksheet_Change(ByVal Target As Range)
    dim ans as String
    If [A1].Value < 0 Then
          ans = MsgBox("Message here" & vbNewLine & vbNewLine & "Additional Message here", vbExclamation+vbOkCancel)
          If ans = vbOk Then
                ....
                ....
                ....
         End If
    End If
    End Sub
    Sorry, there was one mistake, because I rather use Yes and No
    Last edited by hudibyk; 10-31-2013 at 08:14 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Combine cells but one variable remain constant
    By balexander26 in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 03:23 AM
  2. Replies: 3
    Last Post: 02-26-2009, 06:51 AM
  3. cell to remain constant value in column
    By yikes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-15-2007, 08:28 PM
  4. remain constant in a copy &amp;amp; paste
    By Viviank in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-18-2006, 06:35 PM
  5. [SOLVED] data source remain constant
    By maryj in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-28-2005, 08:05 AM

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