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
 
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
 
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


>
 
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
 
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
H Move Selected emails to Local Drive Outlook VBA and Custom Forms 0
D Delete selected text in outgoing email body Outlook VBA and Custom Forms 0
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 2
E Outlook 365 Save Selected Email Message as .msg File - oMail.Delete not working when SEARCH Outlook VBA and Custom Forms 0
E Save Selected Email Message as .msg File - digitally sign email doesn't works Outlook VBA and Custom Forms 1
Witzker Add a text line at the end of the note field in all selected Contacts Outlook VBA and Custom Forms 7
O Replace hard returns with soft returns on selected text and button to QAT Using Outlook 5
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 12
G VBA to save selected Outlook msg with new name in selected network Windows folder Outlook VBA and Custom Forms 1
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 Using Outlook 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 Using Outlook 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item Using Outlook 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 Using Outlook 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
M 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

Similar threads

Back
Top