A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

creating a popup answer for an average range of cells



 
 
Thread Tools Display Modes
  #1  
Old August 23rd, 2008, 04:00 PM posted to microsoft.public.excel.worksheet.functions
1zipsails
external usenet poster
 
Posts: 1
Default creating a popup answer for an average range of cells

How do I Roll over a range of cells and have their average show as a "pop up"?
  #2  
Old August 24th, 2008, 01:40 AM posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
external usenet poster
 
Posts: 1,381
Default creating a popup answer for an average range of cells

This will give you an average for each and every selection you make. I'm
guessing it's going to be obnoxious if someone is changing any data.

Right click on the worksheet to View source. Paste this in

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not IsEmpty(Target) Then
MsgBox ("Average: " & WorksheetFunction.Average(Target.Value))
End If
End Sub

--
HTH,
Barb Reinhardt



"1zipsails" wrote:

How do I Roll over a range of cells and have their average show as a "pop up"?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.