Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default How do you add the warning pull down next to a cell?

I wonder if someone can direct me to the function, collection, documetnation,
etc. on how you add the little drop-down box next to a cell with the warning
icon. Is it as simple as creating a drop down dialog, finding the cell
corrdinates, and dialog.show() to the left of the cell. The toolip appears to
be part of that dialog.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default How do you add the warning pull down next to a cell?

There are predefined errors conditions in Excel. The code below (from help)
shows how to check these values in code.

Sub ErrorValue()

' Place a number written as text in cell A1.
Range("A1").Formula = "'1"

If Range("A1").Errors.Item(xlNumberAsText).Value = True Then
MsgBox "Cell A1 has a number as text."
Else
MsgBox "Cell A1 is a number."
End If

End Sub

If you want to define errors other than the errors that are included in
Excel, I think that you would have to define a new class. A quick and easy
alternative might be to use your code to check for errors, and use the
AddComment method to add a comment to cells that you beleive contain errors.
"Dave" wrote:

I wonder if someone can direct me to the function, collection, documetnation,
etc. on how you add the little drop-down box next to a cell with the warning
icon. Is it as simple as creating a drop down dialog, finding the cell
corrdinates, and dialog.show() to the left of the cell. The toolip appears to
be part of that dialog.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default How do you add the warning pull down next to a cell?

Hi Jared,

Thanks for the reply. Actually, what I'm trying to avoid are message boxes.
My application has hundreds of cells that are being updated and what I am
looking for is a way to, individually, display an error message with each
cell. Somthing like adding comments to a cell yet more like, in Office 2003,
there is a little warning icon that appears to a cell with a problem. The
icon is not much bigger than the cell. If you mouse over the icon, a toop tip
is dissplayed and there is a pulldown arrow that, if selected, yields a
short-cut menu for additional actions. It seems like a Range object may have
an object that has this functionality build in like "comments". I just don't
know how it's done in native Excel. Does that make sense?

Dave

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
How to populate a cell with numeric value based on textselected from pull down in adjacent cell? Garth Rodericks Excel Worksheet Functions 1 September 5th 08 02:03 AM
Help with a blank cell warning Maxemily Excel Worksheet Functions 1 March 30th 06 03:56 PM
I cannot select a single cell or pull down cell contents Carolyn Fahm Excel Worksheet Functions 0 January 24th 06 04:54 PM
have a cell give warning billy boy Excel Discussion (Misc queries) 11 December 15th 05 07:43 PM
What is the warning triangle in a cell and how do I get rid of it. confused Excel Discussion (Misc queries) 1 October 28th 05 10:26 PM


All times are GMT +1. The time now is 05:10 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"