![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I'm having trouble adding to my code to set a Category by clicking a Checkbox. I'm getting an error on line 8. I think something is wrong with the If-Then clauses, but I researched a bit and it seems right (although probably not). If I remove the SummerEvening and SummerSaturday lines, everything works fine. Here's the code: Function Item_Write() Set myinspector = Item.GetInspector Set test = myInspector.ModifiedFormPages("Availability") Set SummerWeekday = test.Controls("SummerWeekday") Set SummerEvening = test.Controls("SummerEvening") Set SummerSaturday = test.Controls("SummerSaturday") If SummerWeekday.Value = True & Then Item.Categories = Item.Categories & ",SummerWeekday" ElseIf SummerEvening.Value = True & Then Item.Categories = Item.Categories & ",SummerEvening" Else SummerSaturday.Value = True & Then Item.Categories = Item.Categories & ",SummerSaturday" End If End Function Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sort by category in the category view | captaindarth | Outlook - Using Contacts | 2 | February 16th 07 11:53 PM |
print a contact list of business category only no other category | Adriana | Outlook - Using Contacts | 3 | January 18th 07 08:55 PM |
How do I set up a default category for appointments w/o category | Mike | Outlook - Calandaring | 0 | December 5th 06 03:59 PM |
Setting reminders by rule or category in Outlook 2003? | hmjarvis | Outlook - Calandaring | 0 | June 21st 06 07:18 AM |
How to set due date for a Category of Tasks? Or set any field that applies to the whole category? | [email protected] | Outlook - Calandaring | 1 | February 4th 06 09:23 PM |