Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 114
Default popup alert in data validation

hello,

i need to set up an "indirect" error alert using DATA VALIDATION. please
refer to the following link http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default popup alert in data validation

Hi Karl

I don't understand why you are not prepared to have data Validation on cell
D4.

Apply DV and set it to allow Whole Number between Minimum 0 and Maximum 50
Set the message on the error alert tab to something like
"The value in this cell must be less than 50"

There will be no dropdown on the cell, but if anyone tries to enter a value
greater than 50, they will be prevented and your message will pop up.
--
Regards
Roger Govier

"karl" wrote in message
...
hello,

i need to set up an "indirect" error alert using DATA VALIDATION. please
refer to the following link http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 114
Default popup alert in data validation

the reason I don't want to validate D4 is that it is a sum of two numbers and
I won't be able to select that cell directly. I hope I answered your
question.

"Roger Govier" wrote:

Hi Karl

I don't understand why you are not prepared to have data Validation on cell
D4.

Apply DV and set it to allow Whole Number between Minimum 0 and Maximum 50
Set the message on the error alert tab to something like
"The value in this cell must be less than 50"

There will be no dropdown on the cell, but if anyone tries to enter a value
greater than 50, they will be prevented and your message will pop up.
--
Regards
Roger Govier

"karl" wrote in message
...
hello,

i need to set up an "indirect" error alert using DATA VALIDATION. please
refer to the following link http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default popup alert in data validation

Hi Karl

I now understand.
You cannot use DV error box, unless it is applied to that cell.

You could incorporate some VBA code to check it, and bring up an error
message, but you need an event to trigger it.
The following code would be triggered if you double click anywhere on the
sheet.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Range("D4").Value 50 Then
MsgBox "Error in cell D4. Value too high"
End If
End Sub

Copy the code above
Right click on Sheet tabView CodePaste into the white pane.
Alt+F11 to return to Excel

--
Regards
Roger Govier

"karl" wrote in message
...
the reason I don't want to validate D4 is that it is a sum of two numbers
and
I won't be able to select that cell directly. I hope I answered your
question.

"Roger Govier" wrote:

Hi Karl

I don't understand why you are not prepared to have data Validation on
cell
D4.

Apply DV and set it to allow Whole Number between Minimum 0 and Maximum
50
Set the message on the error alert tab to something like
"The value in this cell must be less than 50"

There will be no dropdown on the cell, but if anyone tries to enter a
value
greater than 50, they will be prevented and your message will pop up.
--
Regards
Roger Govier

"karl" wrote in message
...
hello,

i need to set up an "indirect" error alert using DATA VALIDATION.
please
refer to the following link
http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 114
Default popup alert in data validation

Hi Roger,
I must be doing something wrong. I hit alt f11 and pasted the code. the
first sentence (Private Sub Worksheet_BeforeDoubleClick(ByVal Target As
Range, Cancel As Boolean)) is all red when i paste it.
thanks.

"Roger Govier" wrote:

Hi Karl

I now understand.
You cannot use DV error box, unless it is applied to that cell.

You could incorporate some VBA code to check it, and bring up an error
message, but you need an event to trigger it.
The following code would be triggered if you double click anywhere on the
sheet.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Range("D4").Value 50 Then
MsgBox "Error in cell D4. Value too high"
End If
End Sub

Copy the code above
Right click on Sheet tabView CodePaste into the white pane.
Alt+F11 to return to Excel

--
Regards
Roger Govier

"karl" wrote in message
...
the reason I don't want to validate D4 is that it is a sum of two numbers
and
I won't be able to select that cell directly. I hope I answered your
question.

"Roger Govier" wrote:

Hi Karl

I don't understand why you are not prepared to have data Validation on
cell
D4.

Apply DV and set it to allow Whole Number between Minimum 0 and Maximum
50
Set the message on the error alert tab to something like
"The value in this cell must be less than 50"

There will be no dropdown on the cell, but if anyone tries to enter a
value
greater than 50, they will be prevented and your message will pop up.
--
Regards
Roger Govier

"karl" wrote in message
...
hello,

i need to set up an "indirect" error alert using DATA VALIDATION.
please
refer to the following link
http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default popup alert in data validation

Hi Karl

The NG reader has wrapped it onto 2 lines.
In the code window, hit the delete button at the end of line 1, and that
will bring it all back to one line and it will change from Red to Black.

or use the code posted below with a proper line break in it

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
If Range("D4").Value 50 Then
MsgBox "Error in cell D4. Value too high"
End If
End Sub

--
Regards
Roger Govier

"karl" wrote in message
...
Hi Roger,
I must be doing something wrong. I hit alt f11 and pasted the code. the
first sentence (Private Sub Worksheet_BeforeDoubleClick(ByVal Target As
Range, Cancel As Boolean)) is all red when i paste it.
thanks.

"Roger Govier" wrote:

Hi Karl

I now understand.
You cannot use DV error box, unless it is applied to that cell.

You could incorporate some VBA code to check it, and bring up an error
message, but you need an event to trigger it.
The following code would be triggered if you double click anywhere on the
sheet.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Range("D4").Value 50 Then
MsgBox "Error in cell D4. Value too high"
End If
End Sub

Copy the code above
Right click on Sheet tabView CodePaste into the white pane.
Alt+F11 to return to Excel

--
Regards
Roger Govier

"karl" wrote in message
...
the reason I don't want to validate D4 is that it is a sum of two
numbers
and
I won't be able to select that cell directly. I hope I answered your
question.

"Roger Govier" wrote:

Hi Karl

I don't understand why you are not prepared to have data Validation on
cell
D4.

Apply DV and set it to allow Whole Number between Minimum 0 and
Maximum
50
Set the message on the error alert tab to something like
"The value in this cell must be less than 50"

There will be no dropdown on the cell, but if anyone tries to enter a
value
greater than 50, they will be prevented and your message will pop up.
--
Regards
Roger Govier

"karl" wrote in message
...
hello,

i need to set up an "indirect" error alert using DATA VALIDATION.
please
refer to the following link
http://www.freefilehosting.net/download/3h8gj
details are provided in the uploaded file.

thank you,
karl

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
data validation error alert does not work timp Excel Discussion (Misc queries) 2 March 11th 08 11:53 AM
Condtional Alert/Popup MIKJ6 Excel Discussion (Misc queries) 1 January 10th 08 09:14 PM
Data sort popup box Paul Cannon New Users to Excel 0 June 13th 07 09:26 AM
Data Entry Alert in User Form Kev Excel Discussion (Misc queries) 6 January 8th 05 03:01 PM
create an alert when the entered data is already in the spreed sh. Janneth Excel Worksheet Functions 1 January 6th 05 09:12 PM


All times are GMT +1. The time now is 05:53 AM.

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

About Us

"It's about Microsoft Excel"