Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here is the code.
Sub TOTHERIGHT() Dim B As Double Dim T As Double Range("E3:E6").Select CaseText = activecell.Value Select Case (CaseText) Case Is < "TOTAL ACCOUNTS" activecell.Offset(0, 1).Select B = activecell.Value T = T + B End Select MsgBox (T) End Sub E3:E6 contains text F3:F6 contains numbers I want a message box that contains the sum of all the numbers to th right of cells that don't say "TOTAL ACCOUNTS" When I run this I get a message box that says -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkboxes Don't Work For Other People | Excel Discussion (Misc queries) | |||
I want to set up a monthly work roster for 4 or 5 people | Excel Worksheet Functions | |||
can two people work on the same worksheet from different computer | Excel Discussion (Misc queries) | |||
Macro fine Run fine from Select but not from KB Shortcut? | Excel Discussion (Misc queries) | |||
monthly work schedule for 2 people on same calendar | Excel Discussion (Misc queries) |