Still working on this problem. Here's the code so far
If cbName.ListIndex < 0 Then
MsgBox cbName & " not on list, adding now"
Set Rng = Worksheets("Master").Range("A3").End(xlDown)(2)
Set rng1 = Worksheets("Light Class").Range("A1").End(xlToRight)(1
2)
rng1 = cbName
rng1.Offset(1, 0) = CDbl(tbScore)
Rng = cbName
Rng.Offset(0, 1) = "=AVERAGE('Light Class'!" & rng1.Offset(1
0).Resize(799).Address & ")"
Rng.Offset(0, 2) = "=SUM('Light Class'!" & rng1.Offset(1
0).Resize(799).Address & ")"
Rng.Offset(0, 3) = "=COUNT('Light Class'!" & rng1.Offset(1
0).Resize(799).Address & ")"
MsgBox Format(Rng) & " Added"
Exit Sub
End If
The problem I'm faced with is that on the sheets I must have at least
entries (A3:A4) already there for this to work. I need for this t
place cbName.
Basically this code is for placing new names and works great if
already have manually entered 2, but fails out if my sheets are blan
or only have 1 entry in them so far..
Any ideas on this one?
Stev
--
Message posted from
http://www.ExcelForum.com