+ Reply to Thread
Results 1 to 4 of 4

Pop Up Appears Twice After Running Initially

  1. #1
    Registered User
    Join Date
    06-13-2018
    Location
    Glasgow
    MS-Off Ver
    2013
    Posts
    33

    Pop Up Appears Twice After Running Initially

    I am looking to show a pop up box only once when particular options are selected from dropdowns (1,1,1). However, the initial Hello message box appears for a second time following the second macro.

    I have attached an example Excel doc to help explain the issue. If you select 1 from all the dropdowns the issue will become clear. Only want the Hello message to appear initially.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Pop Up Appears Twice After Running Initially

    Try this code:


    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    06-13-2018
    Location
    Glasgow
    MS-Off Ver
    2013
    Posts
    33

    Re: Pop Up Appears Twice After Running Initially

    Thanks for your response. This does work. However, it stops the other macros running. I have other Select Case functions for alternative options i.e. when '2' is selected from B3 different rows hide and display (I didn't include this in the Developer).

    Any other thoughts?

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,491

    Re: Pop Up Appears Twice After Running Initially

    Don't put the msgbox in the case "1" because then it will always trigger when cell B1 = 1
    if you put a separate test to see if B1 cell is the changed cell then it will only show if you change cell b1

    Please Login or Register  to view this content.
    I also changed the hiding of rows a bit, but that is more a cosmetic thing to make the code easier to read.

+ 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. Dynamic Hyperlink not working on Mac initially
    By Gregb11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-26-2019, 10:54 AM
  2. [SOLVED] VBA for hiding formula - Can see initially but then goes away
    By RAJRAJ85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2018, 02:10 AM
  3. IF Formula and freeze the data initially filed.
    By kirkpatrickg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2017, 10:32 PM
  4. Filter ListBox already filtered initially
    By Kimaos in forum Excel General
    Replies: 4
    Last Post: 04-29-2012, 07:08 PM
  5. Time Calculations:initially looking
    By Jai_Friday in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2006, 06:50 AM
  6. [SOLVED] Text initially appears in a different cell to one selected until e
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2006, 04:20 AM
  7. [SOLVED] Determining Which Page of MultiPage Initially Shows
    By Michael Malinsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2005, 04:05 PM

Tags for this Thread

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