Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Msgbox when a cell with a specific text entry is selected.

On 23 Jul., 16:41, "Rick Rothstein"
wrote:
Right click the tab at the bottom of the worksheet you want this functionality on, select View Code from the popup menu that appears, then copy/paste the following into the code window that appeared...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
* If Not Target.Find("Report", LookIn:=xlValues, _
* * * * * * * MatchCase:=False) Is Nothing Then
* * MsgBox "Deleting the text entry ""REPORT"" results in ...."
* End If
End Sub

Now fix the message in the MsgBox statement to say what you want. That's it... go back to your worksheet and try to select a cell with only the word "Report" in it (in any letter casing) and the MessageBox should appear.

--
Rick (MVP - Excel)



"andreas" wrote in ...
Dear Experts:


I would like to have a macro code which will bring up a message box
when the cell containing the word "REPORT" is either ...


- activated/selected
- or about to be deleted (the user selects the entire column/row for
deletion or the cell in question *(and possible adjacent cells) to
clear them).


The msgbox is to say: "Deleting the text entry "REPORT" results
in ...."


Help is much appreciated. Thank you very much in advance.


Regards, Andreas- Zitierten Text ausblenden -


- Zitierten Text anzeigen -


Hi Rick,

exactly what I wanted. Thank you very much for your terrific help.
Regards, Andreas
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop up message upon specific cell entry? matt ball Excel Discussion (Misc queries) 8 June 14th 08 03:00 PM
Select specific # of rows below selected cell - please help [email protected] Excel Programming 1 July 23rd 07 04:17 PM
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM
selecting a specific cell within a selected range BrianMo Excel Programming 5 September 29th 06 05:00 PM
msgbox based on cell entry Robert Excel Programming 4 June 3rd 05 09:00 PM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"