PC Review


Reply
Thread Tools Rate Thread

Adding a value in the comment field (little red triangle)?

 
 
=?Utf-8?B?QmFyYg==?=
Guest
Posts: n/a
 
      23rd Jul 2007
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 With Quote
 
 
 
 
keeena
Guest
Posts: n/a
 
      23rd Jul 2007
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 <B...@discussions.microsoft.com> 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 With Quote
 
=?Utf-8?B?QmFyYg==?=
Guest
Posts: n/a
 
      23rd Jul 2007
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 <B...@discussions.microsoft.com> 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 With Quote
 
Keith R
Guest
Posts: n/a
 
      24th Jul 2007
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" <(E-Mail Removed)> wrote in message
news5EC93B8-F0C8-4D31-AFB5-(E-Mail Removed)...
> 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 <B...@discussions.microsoft.com> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
comment (with little red triangle) appearing in pivot table happy 111 Microsoft Excel Misc 4 17th Mar 2008 04:56 AM
How do I add info to "Change Tracking" comment box (blue triangle) =?Utf-8?B?TWlrZVp6?= Microsoft Excel Programming 0 23rd Oct 2007 01:11 PM
Adding a comment to a specific part in a field =?Utf-8?B?RnJhbg==?= Microsoft Word Document Management 2 26th Sep 2007 12:56 AM
how to change the color of the triangle indicating a comment =?Utf-8?B?RnJhbmNpYW5l?= Microsoft Excel Misc 1 22nd Aug 2006 02:03 AM
the red triangle that indicates comment has dissipeared while the. =?Utf-8?B?UmVuZSBIZ2w=?= Microsoft Excel Misc 3 18th Dec 2004 04:39 PM


Features
 

Advertising
 

Newsgroups
 


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