Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Comments in cell (try #2)

Will someone offer some assistance with this pls,

Is it possible to have the result of this formula
=SUM(DynamicRange)/COUNTIF(DynamicRange,"0")displayed as a comment attached
to cell B1? The comment would need to continually update as dynamic data is
changing.

TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Comments in cell (try #2)

"Neal" wrote in message
...
: Will someone offer some assistance with this pls,
:
: Is it possible to have the result of this formula
: =SUM(DynamicRange)/COUNTIF(DynamicRange,"0")displayed as a comment
attached
: to cell B1? The comment would need to continually update as dynamic data
is
: changing.
:
: TIA
:
Here is some input

to add a comment to a cell use
Range("E1").AddComment.Text "Your Comment Here"
Note this assumes there is no comment already existing, if there is you will
get an error. Either check for an existing comment first or use On Error
Resume Next

To know when to add this comment, you would need to look for a change event
Private Sub Worksheet_Change(ByVal Target As Range)
'your add a comment to a cell code here
End Sub
You would need to check if the target range is in your dynamic range.

Post back if you get stuck
Paul D


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Comments in cell (try #2)

What is dynamicrange supposed to be?

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
Will someone offer some assistance with this pls,

Is it possible to have the result of this formula
=SUM(DynamicRange)/COUNTIF(DynamicRange,"0")displayed as a comment

attached
to cell B1? The comment would need to continually update as dynamic data

is
changing.

TIA



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Comments in cell (try #2)

In this example it is the Name of a Dynamic Range I have set up for accepting
new data.

"Tom Ogilvy" wrote:

What is dynamicrange supposed to be?

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
Will someone offer some assistance with this pls,

Is it possible to have the result of this formula
=SUM(DynamicRange)/COUNTIF(DynamicRange,"0")displayed as a comment

attached
to cell B1? The comment would need to continually update as dynamic data

is
changing.

TIA




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Comments in cell (try #2)

Right click on the Sheet tab of the worksheet that has the DynamicRange
defined. Select View Code. Paste in this code in the resulting module

Private Sub Worksheet_Calculate()
Me.Range("B1").NoteText ( _
Application.Sum(Range("DynamicRange")) / _
Application.CountIf(Range("DynamicRange"), "0"))
End Sub

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
In this example it is the Name of a Dynamic Range I have set up for

accepting
new data.

"Tom Ogilvy" wrote:

What is dynamicrange supposed to be?

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
Will someone offer some assistance with this pls,

Is it possible to have the result of this formula
=SUM(DynamicRange)/COUNTIF(DynamicRange,"0")displayed as a comment

attached
to cell B1? The comment would need to continually update as dynamic

data
is
changing.

TIA






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
Extract Cell Comments and Paste as text in a cell Goaliemenace Excel Worksheet Functions 3 October 19th 09 10:28 PM
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
cell with comments kiboy^palaboy[_2_] Excel Discussion (Misc queries) 3 June 25th 09 01:30 PM
print comments using cell contents, not cell# dickenswick Excel Discussion (Misc queries) 3 September 20th 06 11:48 PM
Need to add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM


All times are GMT +1. The time now is 08:42 PM.

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"