Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Way to create a note based on the contents entered in a cell?

I know you can conditionally format a cell to show a different color when a
certain number is entered but is there a way to have a congratulatory note
pop up upon entry. I want to have a comment box, a note, a textbox, or
anything similar pop up on the screen if someone enters a number greater than
150 in a certain cell. Other than having something show up in a separate
cell on the worksheet, is there any way to do this that I haven't thought of?
I'm not good with Macros... thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Way to create a note based on the contents entered in a cell?

You could use data validation.
Choose decimal less than 150.
In the error alert switch to Information from Stop add in a title and a
message.

If less than 150 nothing happens. If 150 or greater then the information box
shows up with your message.
--
HTH...

Jim Thomlinson


"Nicci" wrote:

I know you can conditionally format a cell to show a different color when a
certain number is entered but is there a way to have a congratulatory note
pop up upon entry. I want to have a comment box, a note, a textbox, or
anything similar pop up on the screen if someone enters a number greater than
150 in a certain cell. Other than having something show up in a separate
cell on the worksheet, is there any way to do this that I haven't thought of?
I'm not good with Macros... thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Way to create a note based on the contents entered in a cell?

With the limitaions you impose...............

Check out Data Validation for input and error messages and preventing the
entry of a number greater than 150.

If you don't want to prevent, but just show a pop-up message, you must use
VBA

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value 150 Then
MsgBox "Congratulations"
End If
stoppit:
Application.EnableEvents = True
End Sub

Right-click on the Sheet Tab and "View Code". Copy/paste the above into
that module.

Edit the Target.Address and msgbox contents.

Alt + q to return to Excel.


Gord Dibben MS Excel MVP

On Wed, 7 Apr 2010 11:50:13 -0700, Nicci
wrote:

I know you can conditionally format a cell to show a different color when a
certain number is entered but is there a way to have a congratulatory note
pop up upon entry. I want to have a comment box, a note, a textbox, or
anything similar pop up on the screen if someone enters a number greater than
150 in a certain cell. Other than having something show up in a separate
cell on the worksheet, is there any way to do this that I haven't thought of?
I'm not good with Macros... thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Way to create a note based on the contents entered in a cell?

Perhaps I misunderstand but if you use an Information Error Alert then all
you get is the pop up with no real restriction or prevention on the value
entered. What does the VBA get you that is significantly different? The only
thing I see is that I get the ! mark with no option to change it using
validation.
--
HTH...

Jim Thomlinson


"Gord Dibben" wrote:

With the limitaions you impose...............

Check out Data Validation for input and error messages and preventing the
entry of a number greater than 150.

If you don't want to prevent, but just show a pop-up message, you must use
VBA

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value 150 Then
MsgBox "Congratulations"
End If
stoppit:
Application.EnableEvents = True
End Sub

Right-click on the Sheet Tab and "View Code". Copy/paste the above into
that module.

Edit the Target.Address and msgbox contents.

Alt + q to return to Excel.


Gord Dibben MS Excel MVP

On Wed, 7 Apr 2010 11:50:13 -0700, Nicci
wrote:

I know you can conditionally format a cell to show a different color when a
certain number is entered but is there a way to have a congratulatory note
pop up upon entry. I want to have a comment box, a note, a textbox, or
anything similar pop up on the screen if someone enters a number greater than
150 in a certain cell. Other than having something show up in a separate
cell on the worksheet, is there any way to do this that I haven't thought of?
I'm not good with Macros... thanks


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Way to create a note based on the contents entered in a cell?

Jim

I interpret that OP doesn't want a restriction so DV wouldn't do much good.

Quoted from original posting................

is there a way to have a congratulatory note
pop up upon entry.


Keywords being "congratulatory note"

The code allows the value to be entered and a message displayed.


Gord

On Wed, 7 Apr 2010 15:13:01 -0700, Jim Thomlinson
wrote:

Perhaps I misunderstand but if you use an Information Error Alert then all
you get is the pop up with no real restriction or prevention on the value
entered. What does the VBA get you that is significantly different? The only
thing I see is that I get the ! mark with no option to change it using
validation.


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
Can I add a number to the contents of a cell to indicate a note .. wookeywarn Excel Discussion (Misc queries) 2 April 30th 09 06:04 PM
Contents automatically entered into another cell a_occellaris New Users to Excel 1 July 28th 08 08:57 PM
Create filename based on cell contents JR Hester Excel Worksheet Functions 7 April 4th 07 11:34 PM
preventing cell contents from being entered twice? AndyWes Excel Discussion (Misc queries) 2 May 11th 06 11:57 PM
Cell contents don't display everything entered? treybreak Excel Discussion (Misc queries) 0 April 25th 06 05:09 PM


All times are GMT +1. The time now is 03:13 AM.

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"