Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Would someone please offer help?

Mike,

Sheets("DestSh").Range("D4") =
Application.WorksheetFunction.Sum(Sheets("Sh").Ran ge("D8:D10"))

Or
Sheets("DestSh").Range("D4") = Sheets("DestSh").range("D8") + _
Sheets("DestSh").range("D9") + _
Sheets("DestSh").range("D10")

I've put it in D4. You can apply your own magic.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Mike Taylor" wrote in message
om...
Would someone be kind enough to offer a suggestion to my earlier
post...I've searched the postings and not been able to figure this one
out...TIA
Mike

(Mike Taylor) wrote in message

. com...
The code below copies the value of cell d8 from one worksheet and
pastes the value and format of that cell into column M of a different
worksheet ("DestSh"). What is the code that would copy the sum of
cells d8:d10 rather than only the value in cell d8?

sh.Range("d8").Copy
With DestSh.Cells(Last + 1, "m")
.PasteSpecial xlPasteValues, , False, False
.PasteSpecial xlPasteFormats, , False, False
Application.CutCopyMode = False
End With

Thanks in advance for any feedback...
Mike Taylor



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
VLookup multiple values - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
Cannot copy merged cell to a single cell Kasper Excel Discussion (Misc queries) 13 March 2nd 09 01:13 PM
Auto copy single values to another cell DDavid Excel Discussion (Misc queries) 5 September 27th 07 02:11 PM
Multiple cell values to be drawn from single cell/id. El Shish Excel Discussion (Misc queries) 9 August 18th 06 04:30 PM
How to copy single cell into cell that is merged from two cells? Rod Excel Discussion (Misc queries) 3 January 22nd 06 09:24 PM


All times are GMT +1. The time now is 04:36 AM.

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"