Thread: Macro again...
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
debra2468[_3_] debra2468[_3_] is offline
external usenet poster
 
Posts: 1
Default Macro again...

Cells.Select
Selection.Sort Key1:=Range("K2"), Order1:=xlAscending, Header:=xlYes
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

THE ABOVE CODE PUTS THE VALUES IN THE COLUMN IN ASCENDING ORTDER. NOW
WANT TO HAVE A SUM OF THE NEGATIVE VALUES AND POSITIVE VALUES...how do
do that ?

eg:

-9
-6
-4

-19----------------------total

2
5
7
8

22-------------------------total

i need to insert the totals and make them bold ..
any clue ??????

--
Message posted from http://www.ExcelForum.com