Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Sean Anderson   on Sep 24 In MS Office Category.

  
Question Answered By: Dylan Evans   on Sep 24


Happens when you are multitasking 3 projects!

Sub SumSelectedCells()
aRandomNumber = 1
CellsToSum = Selection.Address
LastInRange = Selection.Rows.Count
vSum = WorksheetFunction.Sum(Range(CellsToSum))
Range(CellsToSum)(LastInRange).Offset(0, 2).Value = vSum / aRandomNumber
End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Conditional Summing Or get search suggestion and latest updates.


Tagged: