Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub SumByEmployee()
Dim MyPick As String Dim mTotal As Double Dim rngemp As Range mTotal = 0 MyPick = InputBox("What Employee Do you Want?") Set rngemp = Range("C6:C15") 'list of employees - single names For Each c In rngemp If c = MyPick Then mTotal = mTotal + rngemp.Offset(, -1).Value 'R/T error happens here End If Next c Range("B18").Value = mTotal End Sub Thanks for any help!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error encounter when i try to click a hyperlink in Excel | Excel Discussion (Misc queries) | |||
Help with #Value error when calling custom functions | Excel Programming | |||
sort (on part of) string - originally posted under Tricky Sort | Excel Programming | |||
Returning Error from Functions | Excel Programming | |||
Deleting Blank Cells Subject to Criteria (Originally Posted in Excel by Mistake) | Excel Programming |