+ Reply to Thread
Results 1 to 5 of 5

Multple active sheets alert

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    florida
    MS-Off Ver
    Excel 2010
    Posts
    97

    Multple active sheets alert

    Good morning,

    if there a way that I can have an alert pop up if multiple sheets are active(selected by Ctrl+Click)

    Thanks

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Multple active sheets alert

    This will trigger whenever selected cell changes and sheets are grouped.
    You may want a different trigeer - modify to suit

    In general module:
    Please Login or Register  to view this content.
    In all sheet modules:
    Please Login or Register  to view this content.
    Test in attached workbook
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Multple active sheets alert

    This i a tough one....

    The following code will give the alert that there is more that one sheet selected
    Please Login or Register  to view this content.
    But I am guessing you want the alert to popup automatically when a multiple sheet is selected and not by manually running a code to check for it. There is a Sheet_Activate event in the work book module that detects a new worksheet has been selected, however, when selecting the additional worksheets, they are not detected because they are selected behind the first selected worksheet which remains the active worksheet.

    The same is true of the worksheet_Activate in the sheet's module. It doesn't fire if selected in addition to another worksheet because the first worksheet remains active. I wrote a quick class module but it does not detect the additional worksheet either

    An alternative approach is to monitor for for the text [Group] in the workbook's caption but again, there is no event for it. Unless someone else has a technique I am not aware of, looks like this can be checked only by running the code manually or by piggybacking off another event like when the user selects a cell on any sheet (other that a chart sheet).

    HTH,
    Mud

    OOPS: I was too late!

  4. #4
    Registered User
    Join Date
    02-24-2012
    Location
    florida
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Multple active sheets alert

    Perfect thanks guys, this is exactly what I was trying attempt.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Multple active sheets alert

    Does that solve your problem? -
    see Thread Tools at top of thread to mark thread SOLVED
    thanks

+ 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. [SOLVED] Copy rows across multple sheets
    By SPARKY347 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2015, 05:47 PM
  2. [SOLVED] Combining Countifs, frequency, multple Sheets
    By her.rockstar in forum Excel General
    Replies: 2
    Last Post: 03-03-2014, 07:35 AM
  3. Need Help with a VBA that updates similar tables in multple sheets
    By rjnewsome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2013, 06:18 PM
  4. Replies: 9
    Last Post: 11-30-2011, 09:06 AM
  5. Continuous Entry count over multple sheets
    By Cristel3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2009, 06:54 PM
  6. Replies: 0
    Last Post: 08-14-2006, 06:05 PM
  7. [SOLVED] suppress Active X alert
    By nevpoe in forum Excel General
    Replies: 3
    Last Post: 07-11-2006, 04:55 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