Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Adding a value in the comment field (little red triangle)?

Hi ,


I have cells that contain prices. I have a function to calculate
the sum of 5 cells. Is it possible to add this value in the comment field
(little red triangle in the corner of the fifth cell)?. Can I do it with VBA?

Thanks Jack

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Adding a value in the comment field (little red triangle)?

I assume you're expecting the comment field to be dynamic/volatile?
Pretty sure that's not possible; value in a comment field is just
static text.

You could write a VBA routine that can add up cells and put the value
into a new or existing comment. This routine would need to be run
every time you changed or added new data (if you wanted the values to
be up-to-date). Could attach it to an Event so that it always runs
when the worksheet is selected.


On Jul 23, 12:40 pm, Barb wrote:
Hi ,

I have cells that contain prices. I have a function to calculate
the sum of 5 cells. Is it possible to add this value in the comment field
(little red triangle in the corner of the fifth cell)?. Can I do it with VBA?

Thanks Jack



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Adding a value in the comment field (little red triangle)?

Hi Keeena,

Yes I just want to add the value that was calculated in VBA. That's
not Dynamic. how can I add the value of the variable that was calculated in
VBA in that comment field?

Thanks.

"keeena" wrote:

I assume you're expecting the comment field to be dynamic/volatile?
Pretty sure that's not possible; value in a comment field is just
static text.

You could write a VBA routine that can add up cells and put the value
into a new or existing comment. This routine would need to be run
every time you changed or added new data (if you wanted the values to
be up-to-date). Could attach it to an Event so that it always runs
when the worksheet is selected.


On Jul 23, 12:40 pm, Barb wrote:
Hi ,

I have cells that contain prices. I have a function to calculate
the sum of 5 cells. Is it possible to add this value in the comment field
(little red triangle in the corner of the fifth cell)?. Can I do it with VBA?

Thanks Jack




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Adding a value in the comment field (little red triangle)?

Barb/Jack-
it isn't clear to me if you are asking for more comprehensive help (how do I
add up the numbers in VBA in the first place) but with regards to just
adding it in a static comment, it is something like (air code):

Sheet1.Range("E4").Comment.Text Text:="The sum is " & cStr(MyTotal)

Where MyTotal is the variable where you've added up your values.

If you need to do this for multiple rows, you'll need to use a loop to cycle
through the appropriate rows (will it be the same rows each time, or do you
need to be able to specify which rows?), add them up (which cells need to be
added?) and decide if there are any conditions in which a total was
calculated in a previous run of the macro and needs to be removed.

If you need more help, just post again and let us know how far you got.

Keith


"Barb" wrote in message
...
Hi Keeena,

Yes I just want to add the value that was calculated in VBA.
That's
not Dynamic. how can I add the value of the variable that was calculated
in
VBA in that comment field?

Thanks.

"keeena" wrote:

I assume you're expecting the comment field to be dynamic/volatile?
Pretty sure that's not possible; value in a comment field is just
static text.

You could write a VBA routine that can add up cells and put the value
into a new or existing comment. This routine would need to be run
every time you changed or added new data (if you wanted the values to
be up-to-date). Could attach it to an Event so that it always runs
when the worksheet is selected.


On Jul 23, 12:40 pm, Barb wrote:
Hi ,

I have cells that contain prices. I have a function to
calculate
the sum of 5 cells. Is it possible to add this value in the comment
field
(little red triangle in the corner of the fifth cell)?. Can I do it
with VBA?

Thanks Jack






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
comment (with little red triangle) appearing in pivot table happy 111 Excel Discussion (Misc queries) 4 March 17th 08 04:56 AM
how to change the color of the triangle indicating a comment Franciane Excel Discussion (Misc queries) 1 August 22nd 06 02:03 AM
Changing the color of the "comment" triangle Mike Excel Discussion (Misc queries) 6 August 21st 06 11:19 PM
"red" Triangle in Comment Indicator- make bigger?? MikeR-Oz New Users to Excel 3 April 7th 06 09:29 AM
the red triangle that indicates comment has dissipeared while the. Rene Hgl Excel Discussion (Misc queries) 3 December 18th 04 04:39 PM


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