oldbloke: (Default)
Add MemoryShare This Entry
posted by [personal profile] oldbloke at 03:44pm on 03/04/2006
Private Sub ComboBox11_Change()
'we need newval to be a string or it'll get the numeric representation of the entered time
Dim newval As String
If ComboBox11.Value = "Add time" Then
newval = InputBox("Enter new time")
ComboBox11.Value = newval
numitems = Sheets("Lists").Cells(2, timecol).Value + 1
Sheets("Lists").Cells(2, timecol).Value = numitems
'even though we made sure newval is a string, it'll get converted again unless we stick a ' in front
Sheets("Lists").Cells(numitems + 2, timecol).Value = "'" & newval
nfr = "Lists!" & timecolc & "3:" & timecolc & numitems + 2
ComboBox2.ListFillRange = nfr
End If
End Sub
There are no comments on this entry. (Reply.)

May

SunMonTueWedThuFriSat
        1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29 30
 
31