You didn't say which calendar control you used. I don't use Word, but if I right-click the control toolbox in Excel and select 'additional controls' Calendar 10.0 is available.
This test procedure shows that your syntax was OK.
str01 gets set to 'A'.
Sub test()
Dim int01 As Integer
Dim str01 as string
int01 = 5
If int01 = 5 Or 6 Or 8 Then
str01 = 'A'
Else
str01 = 'B'
End If
End Sub
I am a relatively new VBA user and this is my first post.
I am using Excel 2002 sp3 with VBA (help shows VB 6.03 version 1024) on an XP sp3 machine.
I have a project with one workbook that has one form - frmRecordJob.
This form has a calendar control, a combo box, 2 listboxes, some labels, and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.