Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MarkT
 
Posts: n/a
Default pasting a hi-lighted auto sum

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!


  #3   Report Post  
MarkT
 
Posts: n/a
Default

Thanks for your help Gord. I have tried the method that you suggested,
however when you do select the cells and hit the autosum button, it will
insert the figure into the column. You then have to copy the newly inserted
cell and continue with the copy and paste as you suggested.

When I am working with these columns of numbers I typically will not be able
to have the new cell with the autosum figure inserted at the bottom of the
current row. I would also then have to delete the cell.

I was hoping there was another way.

Thanks again for your help.

"Gord Dibben" wrote:

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!



  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Mark

How about a macro to sum the cells and place the value on another sheet?

Sub Sum_Selected()
Dim Rng As Range
Set Rng = Selection
If Rng.Cells.Count < 2 Then GoTo endit
Selection.Cells(1).Name = "oldrange"
Sheets("Sheet2").Range("A1").Formula = "=Sum(" _
& ActiveSheet.Name & "!" & Rng.Address & ")"
Sheets("Sheet2").Select
Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Application.Goto Reference:="oldrange"
Exit Sub
endit:
MsgBox "You have not selected a range"
End Sub


Gord Dibben Excel MVP


On Wed, 9 Feb 2005 12:57:08 -0800, "MarkT"
wrote:

Thanks for your help Gord. I have tried the method that you suggested,
however when you do select the cells and hit the autosum button, it will
insert the figure into the column. You then have to copy the newly inserted
cell and continue with the copy and paste as you suggested.

When I am working with these columns of numbers I typically will not be able
to have the new cell with the autosum figure inserted at the bottom of the
current row. I would also then have to delete the cell.

I was hoping there was another way.

Thanks again for your help.

"Gord Dibben" wrote:

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!




  #5   Report Post  
MarkT
 
Posts: n/a
Default

I will give that a try, I'm not too verse with macros, but I will give it a
shot.

Thank you very much!

"Gord Dibben" wrote:

Mark

How about a macro to sum the cells and place the value on another sheet?

Sub Sum_Selected()
Dim Rng As Range
Set Rng = Selection
If Rng.Cells.Count < 2 Then GoTo endit
Selection.Cells(1).Name = "oldrange"
Sheets("Sheet2").Range("A1").Formula = "=Sum(" _
& ActiveSheet.Name & "!" & Rng.Address & ")"
Sheets("Sheet2").Select
Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Application.Goto Reference:="oldrange"
Exit Sub
endit:
MsgBox "You have not selected a range"
End Sub


Gord Dibben Excel MVP


On Wed, 9 Feb 2005 12:57:08 -0800, "MarkT"
wrote:

Thanks for your help Gord. I have tried the method that you suggested,
however when you do select the cells and hit the autosum button, it will
insert the figure into the column. You then have to copy the newly inserted
cell and continue with the copy and paste as you suggested.

When I am working with these columns of numbers I typically will not be able
to have the new cell with the autosum figure inserted at the bottom of the
current row. I would also then have to delete the cell.

I was hoping there was another way.

Thanks again for your help.

"Gord Dibben" wrote:

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!






  #6   Report Post  
Gord Dibben
 
Posts: n/a
Default

Mark

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + R to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Select a range of cells with numbers to sum up on the active sheet.

If you have a Sheet2(or edit Sheet2 in the code to your sheetname) the value
will be pasted there at A1.

ToolsMacroMacros. Select the macro "Sum_Selected" and run it.

The macro can be assigned to a button or shortcut-key combo.


Gord

On Wed, 9 Feb 2005 14:45:02 -0800, "MarkT"
wrote:

I will give that a try, I'm not too verse with macros, but I will give it a
shot.

Thank you very much!

"Gord Dibben" wrote:

Mark

How about a macro to sum the cells and place the value on another sheet?

Sub Sum_Selected()
Dim Rng As Range
Set Rng = Selection
If Rng.Cells.Count < 2 Then GoTo endit
Selection.Cells(1).Name = "oldrange"
Sheets("Sheet2").Range("A1").Formula = "=Sum(" _
& ActiveSheet.Name & "!" & Rng.Address & ")"
Sheets("Sheet2").Select
Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Application.Goto Reference:="oldrange"
Exit Sub
endit:
MsgBox "You have not selected a range"
End Sub


Gord Dibben Excel MVP


On Wed, 9 Feb 2005 12:57:08 -0800, "MarkT"
wrote:

Thanks for your help Gord. I have tried the method that you suggested,
however when you do select the cells and hit the autosum button, it will
insert the figure into the column. You then have to copy the newly inserted
cell and continue with the copy and paste as you suggested.

When I am working with these columns of numbers I typically will not be able
to have the new cell with the autosum figure inserted at the bottom of the
current row. I would also then have to delete the cell.

I was hoping there was another way.

Thanks again for your help.

"Gord Dibben" wrote:

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!





  #7   Report Post  
MarkT
 
Posts: n/a
Default



"Gord Dibben" wrote:

Mark

How about a macro to sum the cells and place the value on another sheet?

Sub Sum_Selected()
Dim Rng As Range
Set Rng = Selection
If Rng.Cells.Count < 2 Then GoTo endit
Selection.Cells(1).Name = "oldrange"
Sheets("Sheet2").Range("A1").Formula = "=Sum(" _
& ActiveSheet.Name & "!" & Rng.Address & ")"
Sheets("Sheet2").Select
Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Application.Goto Reference:="oldrange"
Exit Sub
endit:
MsgBox "You have not selected a range"
End Sub


Gord Dibben Excel MVP


On Wed, 9 Feb 2005 12:57:08 -0800, "MarkT"
wrote:

Thanks for your help Gord. I have tried the method that you suggested,
however when you do select the cells and hit the autosum button, it will
insert the figure into the column. You then have to copy the newly inserted
cell and continue with the copy and paste as you suggested.

When I am working with these columns of numbers I typically will not be able
to have the new cell with the autosum figure inserted at the bottom of the
current row. I would also then have to delete the cell.

I was hoping there was another way.

Thanks again for your help.

"Gord Dibben" wrote:

Mark

I assume you mean the SUM down on the Status Bar.

AFAIK there is no way to copy this number.

Workaround........select the cells then hit the AutoSum button on your
Standard Toolbar.

Copy and Paste SpecialValues to the other workbook or sheet.


Gord Dibben Excel MVP

On Wed, 9 Feb 2005 07:59:06 -0800, "MarkT"
wrote:

In excel, when you hi-light a column of numbers, the program automatically
sums the hi-lighted numbers. My question is this, is there a way to copy
this auto sum total to another speadsheet that I have open?

Thanks for your help!




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
formatting when pasting into excel Don Hicks at MESD Excel Discussion (Misc queries) 1 February 8th 05 08:46 PM
pasting into an excel template without losing the formatting chachi Excel Discussion (Misc queries) 2 January 14th 05 04:08 AM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 02:55 AM
excel links update not working in auto, calculations in auto Mikey Boy Excel Worksheet Functions 0 December 7th 04 11:53 PM
Why can't my macro use Auto Filter when I told the Sheet Protecti. KC Rippstein Excel Worksheet Functions 1 October 28th 04 06:13 PM


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