Outlook 2003 Journal default entry type.

W

William.Gunn

I've followed the suggestions of Mrs. Mosher and others in this group,
and I've been able to create a custom form which I can open that opens
with the default entry type of "Task". However, I have to go through
the choose form menu option, select the personal forms library, then
the custom form in order to do so. Since the whole purpose of doing
this was to save a keystroke or two having to change the entry type
from phone to task, having to go through the menu is a little
counterproductive. I tried to make it automatically start the timer
upon opening, but I didn't get that right.

I've gone through the registry and renamed the "Phone Call" entry type
to "task", but this apparently had no effect, as it still showed "Phone
Call" upon clicking the new journal entry button. I actually switched
each value over when I renamed the key, maybe this is why?

I used the form switcher to substitute my custom form for the default
Journal form, and changed the 9.0 to 11.0 in the reg string, but this
apparently screwed something up, because I now get a error box saying
"The operation failed. The object cannot be found." when I select "New
Journal Entry"

At this point, I have to say that I'm over my head. Can anyone help?
I don't understand exactly what to do with the code snippets that have
been posted, so if you can siolve my problem with code, would you
please give me some help as to where I'm supposed to put the code. I
can open the Alt-F11 window, but I can't make what I do there change
the form I'm working on. Likewise, if I'm in form design mode, and I
select the "View Code" menu option, no code is revealed, nor is there
any option for saving this to the current form. If I try to run the
code that Mrs. Mosher posted earlier, the one with Item.Type = "Task",
Visual Studio debugger opens and I get a error saying "MS VBScript
runtime error Item doesn't not support this property or method.
'Item.Type'
 
D

Diane Poremsky [MVP]

On opening forms: right click on the folder and choose properties - set the
form to be default. It should open when you click New Task. If you only want
to use it on occasion, publish to a folder and when in that folder, look on
the actions menu.
 
W

William.Gunn

Aha! I deleted the registry string given to me by the FormsAdmin tool,
and that resotred the function of the "New" button in Journal View.
Publishing the form to Personal Forms Library(or something else I did)
resulted in the custom form showing up under the actions menu.
Following your tip, I right clicked journal, and selected my custom
form under "When posting to this folder use:". Now when the journal
opens up, "Task" is the default Item type.

The following code posted by Mrs. Mosher shows up when I do "show code"
Function Item_Open()
If Item.Size = 0 Then
Item.Type = "Task"
Item.Start = Now
End If
End Function

Thanks for all your help!

Now is there any way to start the timer automatically? when opening.
Can I add another Item.Open routine or something....
 
S

Sue Mosher [MVP-Outlook]

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from <All Libraries> to Outlook to browse all Outlook objects and their properties, methods, and events. Select any object or member, then press F1 to see its Help topic.

You'll see that the JournalItem object has a StartTimer method.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
W

William.Gunn

Thanks so much for your help. I'm getting it figured out, and it's
going much more quickly thanks to you and the others who have posted
tips.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top