+ Reply to Thread
Results 1 to 4 of 4

Show MSGBOX only when select cell in a range

  1. #1
    Registered User
    Join Date
    07-23-2020
    Location
    Canada
    MS-Off Ver
    2013, MS365
    Posts
    25

    Show MSGBOX only when select cell in a range

    Hi Guys,

    I try to learn VBA and I would like to be able to have the MSGBOX appear with the Cell Value but only when I select a certain range cell or column.
    like exemple if I click any cell from column E, so E1, E12, E30, E... the MSGBOX will appear with the value inside that cell. If I click anywhere else in the sheet, A2, C11, D4, this will not open any MSGBOX, is that possible?

    for the moment I use this code:
    Worksheets("Sheet1").Activate
    MsgBox ActiveCell.Value

    where is showing any cell in a MSGBOX inside all the worksheet, but I need to have only certain range. also if that is possible, can we add more than 1 column like B and E for exemple if needed later?

    thank you for your help
    Last edited by Natas20075; 02-12-2021 at 06:41 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Show MSGBOX only when select cell in a range

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-23-2020
    Location
    Canada
    MS-Off Ver
    2013, MS365
    Posts
    25

    Re: Show MSGBOX only when select cell in a range

    That is so simple! thank you Logit ^^

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Show MSGBOX only when select cell in a range

    You are welcome.

+ 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] If range value greater then 0 then show msgbox with cell value
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2017, 06:50 AM
  2. [SOLVED] Check Date and Time in range and show Msgbox
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2016, 09:08 AM
  3. [SOLVED] Need VBA to find letter A in Column A:A, select range, popup MsgBox then loop
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2015, 04:05 AM
  4. [SOLVED] Show sum value of range in msgbox
    By TimmerSuds in forum Excel General
    Replies: 5
    Last Post: 06-18-2014, 06:27 AM
  5. [SOLVED] How to show MsgBox if a range of cells in a worksheet of a workbook is already comp.
    By bigpappi23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2013, 10:20 AM
  6. Check range if multiple names exist then show msgbox
    By c.pedersen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 06:23 AM
  7. How to show MsgBox if a any cell value is > 17 in a range
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2011, 08:48 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