Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 40
Default Pop up window with totals?

Hello again,

I have a spreadsheet with quite a few formulas. There is data going down pretty far. What I'd like to do is create a comand button that will add the entire column (for this example, it's going to be "O") and have a pop up window with the total (the command button would force the window open). I realize I can just have a total at the bottom of the column, but the column is way far down. Maybe it's easier for the window to just report what's in that total cell?

Thanks,

J-
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Pop up window with totals?

Hi Jonathan,

Am Mon, 15 Apr 2013 13:01:26 +0100 schrieb JonathanK1:

I have a spreadsheet with quite a few formulas. There is data going
down pretty far. What I'd like to do is create a comand button that
will add the entire column (for this example, it's going to be "O") and
have a pop up window with the total (the command button would force the
window open). I realize I can just have a total at the bottom of the
column, but the column is way far down. Maybe it's easier for the
window to just report what's in that total cell?


e.g.:
Private Sub CommandButton1_Click()
Dim LRow As Long

LRow = Cells(Rows.Count, "O").End(xlUp).Row
MsgBox "Sum= " & WorksheetFunction.Sum(Range("O1:O" & LRow))
End Sub


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Pop up window with totals?

Hello again,

I have a spreadsheet with quite a few formulas. There is data going
down pretty far. What I'd like to do is create a comand button that
will add the entire column (for this example, it's going to be "O")
and have a pop up window with the total (the command button would
force the window open). I realize I can just have a total at the
bottom of the column, but the column is way far down. Maybe it's
easier for the window to just report what's in that total cell?

Thanks,

J-


Can you put the total at the top? This is what I (sometimes) do for
lengthy data where appropriate!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
Pivot Totals: Group totals different from Grand totals PsyberFox Excel Discussion (Misc queries) 1 February 13th 08 06:16 PM
how to enter totals and sub totals from receipts into excel. mjd23 New Users to Excel 2 January 11th 08 01:54 AM
Totals Not Showing At Bottom Of Excel Window PatK Excel Discussion (Misc queries) 3 December 12th 07 04:32 PM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM
Summing Weekly Totals into Monthly Totals steph44haf Excel Worksheet Functions 3 July 5th 06 04:51 PM


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