+ Reply to Thread
Results 1 to 2 of 2

automated pop up message when entering certain values to notify

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    15

    automated pop up message when entering certain values to notify

    Dbod_BUDGET_TEMPLATE_NEW_test popup.xlsmHi,

    I have created a budget template.
    In some instances, a discount is offered when more that x amount of products are ordered ( it varies,so I'll have to change the macro for each instance). I'd like to have a pop up box appear ( and dissapear again when pressing 'enter') that gives a notification like: a discount is applicable, please select'


    my cell with entered amount is "I54", and want a message if entered above 5

    I tried the below and swapped places between sentence 1 and two as it doesn't seem to recognize subname, or sub start, or it just dissapears from my macro list ( although still a module):
    driving me nuts that i can't figure it out as I KNOW it's a simple mistake.. ( in the below order, it stated it expects the sub to end after sentence 1, if i remove sub popup () ( the title) ut just deletes the thing from my macro lsit,w hat is goign on!, and it just wont work)


    'Sub popup()
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim rng As Range
    Set rng = Target.Parent.Range("I54")
    If Target.Count > 1 Then Exit Sub
    If Intersect(Target, rng) Is Nothing Then Exit Sub
    If Target.Value > 5 Then
    MsgBox "a discount is applicable, please select"
    End If
    End Sub

    can someone restore my sanity please?

    thanks!
    Last edited by pallie; 05-13-2014 at 06:02 AM. Reason: added worksheet

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: automated pop up message when entering certain values to notify

    Please Login or Register  to view this content.

    With the popup sub, you'll need to pass Target into it, so will be Sub PopUp(Target as Excel.Range)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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. Automated Timesheet Help: Message Box & Submit Buttons
    By GSA_Tanya in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-21-2014, 10:10 PM
  2. Pop up read only/notify message when workbook is allready opened
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 06:22 PM
  3. VBA Automated Reminder Message based on Date
    By Carl Thompson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2010, 09:11 AM
  4. [SOLVED] Notify Message?
    By MAB in forum Excel General
    Replies: 0
    Last Post: 08-03-2006, 11:50 AM
  5. Prompt message and Automated saving!
    By SU in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2005, 09: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