Get selected option in recurrence range group

Status
Not open for further replies.
V

VGlhZ28gUGluYQ

Hi,

I am facing a small problem here... I have my recurrence range group where I

can select where or how my recurrence ends ("no end date", "end after <x
occurrences" or end by <DATE>).

When Im populating my recurrence pattern object Outlook puts some default

values either in the "occurrences" field and the "end by" field, even if "no

end date" is selected.

My question is: how can I know what radio button is selected or how can I

overcome the default values inserted by Outlook?

get_NoEndDate method only excludes the other two options if it is checked...

if get_NoEndDate is false there is still two possible values the occurrences

or the end date... i still don't know how to see if which one of them is

selected...

Help pls!?

Example:

I select "End after: 5 occurences", so I only want that value, not the

default date on the "End by field".

Hope you guys understand my problem and thanks in advance.

Tiago
 
K

Ken Slovak - [MVP - Outlook]

You cannot read values from that dialog at all. You can only guess what they

were based on the final recurrence pattern that's saved in the item.

"Tiago Pina" <Tiago Pina> wrote in message

news:77700B4C-FCFF-4BEA-9FE9-B8A5E7E5632A@microsoft.com...
> Hi,

> I am facing a small problem here... I have my recurrence range group where
> I
> can select where or how my recurrence ends ("no end date", "end after <x
> occurrences" or end by <DATE>).

> When Im populating my recurrence pattern object Outlook puts some default
> values either in the "occurrences" field and the "end by" field, even if
> "no
> end date" is selected.

> My question is: how can I know what radio button is selected or how can I
> overcome the default values inserted by Outlook?

> get_NoEndDate method only excludes the other two options if it is
> checked...
> if get_NoEndDate is false there is still two possible values the
> occurrences
> or the end date... i still don't know how to see if which one of them is
> selected...

> Help pls!?

> Example:
> I select "End after: 5 occurences", so I only want that value, not the
> default date on the "End by field".

> Hope you guys understand my problem and thanks in advance.

> Tiago
 
V

VGlhZ28gUGluYQ

Thanks for your reply!

REgarding this scenario where I have an appointment that recurs every week

for 10 times stored in outlook.

My recurrence pattern will allways have an end date even if the "End by:

DATE" option is not selected. Is this right?

I cannot know if I have to store to my object the get_Ocurrences or the

get_PatternEndDate value, because get_PatternEndDate will always have a value

(default).

Its a little bit awkward. :S
wrote:


> You cannot read values from that dialog at all. You can only guess what they
> were based on the final recurrence pattern that's saved in the item.

> >

>

> "Tiago Pina" <Tiago Pina> wrote in message
> news:77700B4C-FCFF-4BEA-9FE9-B8A5E7E5632A@microsoft.com...
> > Hi,
> > I am facing a small problem here... I have my recurrence range group where
> > I
> > can select where or how my recurrence ends ("no end date", "end after <x
> > occurrences" or end by <DATE>).
> > When Im populating my recurrence pattern object Outlook puts some default
> > values either in the "occurrences" field and the "end by" field, even if
> > "no
> > end date" is selected.
> > My question is: how can I know what radio button is selected or how can I
> > overcome the default values inserted by Outlook?
> > get_NoEndDate method only excludes the other two options if it is
> > checked...
> > if get_NoEndDate is false there is still two possible values the
> > occurrences
> > or the end date... i still don't know how to see if which one of them is
> > selected...
> > Help pls!?
> > Example:
> > I select "End after: 5 occurences", so I only want that value, not the
> > default date on the "End by field".
> > Hope you guys understand my problem and thanks in advance.
> > Tiago


>
 
K

Ken Slovak - [MVP - Outlook]

I haven't analyzed that dialog and how the pattern gets displayed in many

years, so my recollections may be hazy.

The patterns that have a stop date won't show that in the dialog if you have

how many instances of the recurrence set. There are also some specific cases

where the pattern is set to say weekly or monthly and the dialog shows it as

a different pattern type.

You pretty much have to reverse engineer how the dialog shows a pattern by

changing settings, saving and checking the recurrence pattern to see how

things will display.

"Tiago Pina" <TiagoPina> wrote in message

news:568A2457-CA4C-4E1E-9DC8-7DA0E0B35972@microsoft.com...
> Thanks for your reply!

> REgarding this scenario where I have an appointment that recurs every week
> for 10 times stored in outlook.
> My recurrence pattern will allways have an end date even if the "End by:
> DATE" option is not selected. Is this right?

> I cannot know if I have to store to my object the get_Ocurrences or the
> get_PatternEndDate value, because get_PatternEndDate will always have a
> value
> (default).
> Its a little bit awkward. :S
 
D

Dmitry Streblechenko

It depends on whether you set the EndTime property or Occurrences.

I don't think there is a way to distinguish between the two when *reading*

the recurrence pattern using the Outlook object Model alone.

Dmitry Streblechenko (MVP)

-

"Tiago Pina" <Tiago Pina> wrote in message

news:77700B4C-FCFF-4BEA-9FE9-B8A5E7E5632A@microsoft.com...
> Hi,

> I am facing a small problem here... I have my recurrence range group where
> I
> can select where or how my recurrence ends ("no end date", "end after <x
> occurrences" or end by <DATE>).

> When Im populating my recurrence pattern object Outlook puts some default
> values either in the "occurrences" field and the "end by" field, even if
> "no
> end date" is selected.

> My question is: how can I know what radio button is selected or how can I
> overcome the default values inserted by Outlook?

> get_NoEndDate method only excludes the other two options if it is
> checked...
> if get_NoEndDate is false there is still two possible values the
> occurrences
> or the end date... i still don't know how to see if which one of them is
> selected...

> Help pls!?

> Example:
> I select "End after: 5 occurences", so I only want that value, not the
> default date on the "End by field".

> Hope you guys understand my problem and thanks in advance.

> Tiago
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
N Save selected messages VBA does not save replies and/or messages that contain : in subject Outlook VBA and Custom Forms 1
Bering Forward selected email without the original email appended Outlook VBA and Custom Forms 0
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
B Change row background color of selected item Using Outlook 1
T Change the selected Message in the Outlook window Outlook VBA and Custom Forms 2
H Custom Signature Not Displayed When Account Selected Outlook VBA and Custom Forms 10
J Checkboxes when selected will appear in a textbox in Outlook 2016 Outlook VBA and Custom Forms 1
K How to reference the selected folder Outlook VBA and Custom Forms 1
R VBA Code to permanently delete selected email Outlook VBA and Custom Forms 10
P Outlook 2013 opens with FILE tab selected. Using Outlook 3
C Change Subject Line in Selected Emails Outlook VBA and Custom Forms 1
G Autocomplete adds suspicious "@unknown.email" to selected contacts Using Outlook 1
D Saving Selected Emails as PDF and saving Attachments Outlook VBA and Custom Forms 6
D Print Attachments only in selected emails using a macro Outlook VBA and Custom Forms 3
O On click,I want to change subject line of selected mail and then reply to particular email and move Using Outlook 3
B Macro to manually move selected emails to network folder Outlook VBA and Custom Forms 1
M code to move selected Outlook contacts to another folder Using Outlook 3
A Helping OL remember which calendars were selected Using Outlook 6
Diane Poremsky Save Selected Email Message as .msg File New Slipstick.com Articles 11
D Delete selected text from incoming emails Outlook VBA and Custom Forms 25
mikolajek Random message selected after hard delete Using Outlook 4
Diane Poremsky Working with All Items in a Folder or Selected Items New Slipstick.com Articles 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item New Slipstick.com Articles 0
A VBA to create meeting from template from a time slot selected in someone's calendar Outlook VBA and Custom Forms 5
Diane Poremsky Create Task or Appointment and Insert Selected Text New Slipstick.com Articles 0
Yusufbodrum Highlighting selected mails in any folder Using Outlook 2
P Subject change on selected emails Outlook VBA and Custom Forms 14
C Autofill subject line in appointment from options selected in combobox Using Outlook 6
P Is it possible to write a macro to email to all addresses of selected contacts? Using Outlook 1
I Save selected email message as .msg file (with user to choose folder location) Outlook VBA and Custom Forms 14
S Macro to print & move selected emails? Using Outlook 3
L Selected Contacts For E-Mails Using Outlook 19
K Help! I selected every contact and mistakenly made them all the same category Using Outlook 1
C Outlook 2010 Address Book, won't stay selected Using Outlook 5
L Outlook 2007 E-Mail From Selected Task Using Outlook 18
L Email For Selected Contacts Using Outlook 5
D Trigger macro to run when selected email is opened Using Outlook 3
D Launch Outlook showing only selected messages. Using Outlook 1
J Capturing forward event when multiple items are selected Using Outlook 0
S Printing Selected Date Range in Monthly Style Using Outlook 1
P Export selected contacts to a .csv Using Outlook 2
S Outlook 2003: Help with setting up a macro to reply to selected emails Using Outlook 2
A Active task for selected days options Outlook Wishlist 1
B How to create the customized Outlook SQL DASL for selected days? Outlook VBA and Custom Forms 2
M Selected date on calendar Outlook VBA and Custom Forms 8
P Can you load an OlkComboBox and show a previously selected value? Outlook VBA and Custom Forms 1
V major issue in outlook "Change in forward mail also change selected mail " Outlook VBA and Custom Forms 1
P How to get Selected text form Mail item in outlook in ATL COM Outlook VBA and Custom Forms 1
P How to get Selected Body message Text Outlook VBA and Custom Forms 7
C Make Field Available If A Crietria In The Other Field is Selected Outlook VBA and Custom Forms 1

Similar threads

Top