Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
I am looking for a macro to do the following:
As soon as a User clicks on cells B18 or B24 or B37 a message box should pop up with my message (I already have the message code) I just need the code to tell it when a user selects one of the above mentioned cells -- thanx |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
One easy alternative for the desired functionality is via:
Data Validation Input message tab The message will display when the cell is selected -- Max Singapore http://savefile.com/projects/236895 Downloads:22,500 Files:370 Subscribers:66 xdemechanik --- "tommy" wrote: I am looking for a macro to do the following: As soon as a User clicks on cells B18 or B24 or B37 a message box should pop up with my message (I already have the message code) I just need the code to tell it when a user selects one of the above mentioned cells |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
Hi Tommy
Did you know you can get the same result with DataValidation goto Input message and type your message. Also you got InsertComment. Without a Macro HTH John "tommy" .(donotspam) wrote in message ... I am looking for a macro to do the following: As soon as a User clicks on cells B18 or B24 or B37 a message box should pop up with my message (I already have the message code) I just need the code to tell it when a user selects one of the above mentioned cells -- thanx |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
To All,
I'm sorry I forgot to mention that Data Validation is not an option since I am already using it as a drop down list on the mentioned cells -- thanx "Max" wrote: One easy alternative for the desired functionality is via: Data Validation Input message tab The message will display when the cell is selected -- Max Singapore http://savefile.com/projects/236895 Downloads:22,500 Files:370 Subscribers:66 xdemechanik --- "tommy" wrote: I am looking for a macro to do the following: As soon as a User clicks on cells B18 or B24 or B37 a message box should pop up with my message (I already have the message code) I just need the code to tell it when a user selects one of the above mentioned cells |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
Sorry,
but I dont want to use Insert Comment or Data Validation I want the message box to pop up since it forces the user to read and click OK -- thanx "John" wrote: Hi Tommy Did you know you can get the same result with DataValidation goto Input message and type your message. Also you got InsertComment. Without a Macro HTH John "tommy" .(donotspam) wrote in message ... I am looking for a macro to do the following: As soon as a User clicks on cells B18 or B24 or B37 a message box should pop up with my message (I already have the message code) I just need the code to tell it when a user selects one of the above mentioned cells -- thanx |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const sINPUTS As String = "B18,B24,B37" If Not Intersect(Target, Me.Range(sINPUTS)) Is Nothing Then MsgBox "your message" End If End Sub Right-click on the sheet tab and "View Code". Copy/paste into that module. Alt + q to return to the Excel window. Gord Dibben MS Excel MVP On Thu, 29 Jan 2009 16:49:01 -0800, tommy .(donotspam) wrote: Sorry, but I dont want to use Insert Comment or Data Validation I want the message box to pop up since it forces the user to read and click OK |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
thanx, this worked
BUT, I need a total of 31 lines/sentences to complete my message the last 7 lines are on the same line as the 7 previous lines how do I extend the message box -- thanx "Gord Dibben" wrote: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Const sINPUTS As String = "B18,B24,B37" If Not Intersect(Target, Me.Range(sINPUTS)) Is Nothing Then MsgBox "your message" End If End Sub Right-click on the sheet tab and "View Code". Copy/paste into that module. Alt + q to return to the Excel window. Gord Dibben MS Excel MVP On Thu, 29 Jan 2009 16:49:01 -0800, tommy .(donotspam) wrote: Sorry, but I dont want to use Insert Comment or Data Validation I want the message box to pop up since it forces the user to read and click OK |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Prompting users with a message box on certain cells
What happened to....................?
" (I already have the message code) " I suppose you could add a bunch of linefeeds like MsgBox "this is the first line of the message" & vbCrLf _ & "this is the second line of the message" & vbCrLf _ & "this is the third line" etc. Would be far easier to place the message in a textbox on a UserForm which loads when the correct cell(s) are selected. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Const sINPUTS As String = "B18,B24,B37" If Not Intersect(Target, Me.Range(sINPUTS)) Is Nothing Then UserForm1.Show End If End Sub Users read the message then hit the close "x" on the UserForm Gord On Thu, 29 Jan 2009 18:07:01 -0800, tommy .(donotspam) wrote: thanx, this worked BUT, I need a total of 31 lines/sentences to complete my message the last 7 lines are on the same line as the 7 previous lines how do I extend the message box |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Some users sharing a workbook getting read only message | Excel Discussion (Misc queries) | |||
"File Is Locked" Error Message (not by other users) | Excel Discussion (Misc queries) | |||
Locking cells only for certain users | Excel Discussion (Misc queries) | |||
Can anyone recommend a good Forum/Message board for SQL users? | Excel Discussion (Misc queries) | |||
Prompting users for data entry in a worksheet | Excel Discussion (Misc queries) |