A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Customize Outlook current view with code(vba)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 07, 04:27 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Customize Outlook current view with code(vba)

I created an add-in, and I want to add a custom field in the Inbox Explorer
through the code, and show in the current view. I want to do this through
the code, so when user open Outlook for the first time, if this field is not
in the view it should add the field. I want to distribute this add in to
hundred users, and I am looking for better way to customize view other then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran


  #2  
Old November 8th 07, 06:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize Outlook current view with code(vba)

Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the
BeforeFolderSwitch event handler to decide what kind of folder is being
switched to and whether or not to apply the custom view.

You can't add new folder fields, you can add a user property to every item
in a folder and set the property to be a folder fields property, which makes
it available for use in a view. Again, your addin code can add the property
when the addin runs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I created an add-in, and I want to add a custom field in the Inbox
Explorer
through the code, and show in the current view. I want to do this through
the code, so when user open Outlook for the first time, if this field is
not
in the view it should add the field. I want to distribute this add in to
hundred users, and I am looking for better way to customize view other
then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran



  #3  
Old November 8th 07, 08:45 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Customize Outlook current view with code(vba)

Thanks Ken

Each user will have its own view and it could be different, so I can't copy
the same view xml for everyone. I would have to dynamically get the view xml
in BeforeFolderSwitch event. Check if the field is already there and if not
edit/update the xml to add the field, save and apply. Right? If yes, what
would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in the
code to add new field?

Thanks again for your help,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the
BeforeFolderSwitch event handler to decide what kind of folder is being
switched to and whether or not to apply the custom view.

You can't add new folder fields, you can add a user property to every item
in a folder and set the property to be a folder fields property, which makes
it available for use in a view. Again, your addin code can add the property
when the addin runs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I created an add-in, and I want to add a custom field in the Inbox
Explorer
through the code, and show in the current view. I want to do this through
the code, so when user open Outlook for the first time, if this field is
not
in the view it should add the field. I want to distribute this add in to
hundred users, and I am looking for better way to customize view other
then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran




  #4  
Old November 9th 07, 01:40 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize Outlook current view with code(vba)

I use an XML processor when I have to do that, usually just from MSXML. I
usually use a reference to version 2 since it's on all modern systems, later
versions may not be unless I deploy it with my code, depending on updates
and OS version.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Thanks Ken

Each user will have its own view and it could be different, so I can't
copy
the same view xml for everyone. I would have to dynamically get the view
xml
in BeforeFolderSwitch event. Check if the field is already there and if
not
edit/update the xml to add the field, save and apply. Right? If yes, what
would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in
the
code to add new field?

Thanks again for your help,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the
BeforeFolderSwitch event handler to decide what kind of folder is being
switched to and whether or not to apply the custom view.

You can't add new folder fields, you can add a user property to every
item
in a folder and set the property to be a folder fields property, which
makes
it available for use in a view. Again, your addin code can add the
property
when the addin runs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I created an add-in, and I want to add a custom field in the Inbox
Explorer
through the code, and show in the current view. I want to do this
through
the code, so when user open Outlook for the first time, if this field
is
not
in the view it should add the field. I want to distribute this add in
to
hundred users, and I am looking for better way to customize view other
then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran





  #5  
Old November 9th 07, 03:28 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Customize Outlook current view with code(vba)

I will try. Thanks Ken.

"Ken Slovak - [MVP - Outlook]" wrote:

I use an XML processor when I have to do that, usually just from MSXML. I
usually use a reference to version 2 since it's on all modern systems, later
versions may not be unless I deploy it with my code, depending on updates
and OS version.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Thanks Ken

Each user will have its own view and it could be different, so I can't
copy
the same view xml for everyone. I would have to dynamically get the view
xml
in BeforeFolderSwitch event. Check if the field is already there and if
not
edit/update the xml to add the field, save and apply. Right? If yes, what
would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in
the
code to add new field?

Thanks again for your help,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the
BeforeFolderSwitch event handler to decide what kind of folder is being
switched to and whether or not to apply the custom view.

You can't add new folder fields, you can add a user property to every
item
in a folder and set the property to be a folder fields property, which
makes
it available for use in a view. Again, your addin code can add the
property
when the addin runs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I created an add-in, and I want to add a custom field in the Inbox
Explorer
through the code, and show in the current view. I want to do this
through
the code, so when user open Outlook for the first time, if this field
is
not
in the view it should add the field. I want to distribute this add in
to
hundred users, and I am looking for better way to customize view other
then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran






  #6  
Old November 9th 07, 09:21 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Customize Outlook current view with code(vba)

Sorry to bother you again Ken, but I finish customizing the view and
everything is fine now. How can I programmatically load the addin so when
user starts the outlook it loads it automatically, rather then me going to
add-in manager and finding the dll file and adding it manually.

Thanks again for your help

"Ken Slovak - [MVP - Outlook]" wrote:

I use an XML processor when I have to do that, usually just from MSXML. I
usually use a reference to version 2 since it's on all modern systems, later
versions may not be unless I deploy it with my code, depending on updates
and OS version.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Thanks Ken

Each user will have its own view and it could be different, so I can't
copy
the same view xml for everyone. I would have to dynamically get the view
xml
in BeforeFolderSwitch event. Check if the field is already there and if
not
edit/update the xml to add the field, save and apply. Right? If yes, what
would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in
the
code to add new field?

Thanks again for your help,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the
BeforeFolderSwitch event handler to decide what kind of folder is being
switched to and whether or not to apply the custom view.

You can't add new folder fields, you can add a user property to every
item
in a folder and set the property to be a folder fields property, which
makes
it available for use in a view. Again, your addin code can add the
property
when the addin runs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I created an add-in, and I want to add a custom field in the Inbox
Explorer
through the code, and show in the current view. I want to do this
through
the code, so when user open Outlook for the first time, if this field
is
not
in the view it should add the field. I want to distribute this add in
to
hundred users, and I am looking for better way to customize view other
then
me going to all of them and doing it manually. Any ideas?

Thanks,

Goran






  #7  
Old November 12th 07, 01:52 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize Outlook current view with code(vba)

If it's already listed in the COM Add-Ins dialog then you have it registered
and have LoadBehavior set to 2. For an addin to load then the host
application starts up LoadBehavior needs to be set to 3.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Sorry to bother you again Ken, but I finish customizing the view and
everything is fine now. How can I programmatically load the addin so when
user starts the outlook it loads it automatically, rather then me going to
add-in manager and finding the dll file and adding it manually.

Thanks again for your help


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"customize current view" for ALL folders / subfolders NeXTstep Outlook - General Queries 1 November 21st 06 02:08 PM
Customize Current Day Highlight in Outlook Calendar Dan Outlook - Calandaring 1 September 19th 06 12:49 AM
outlook menu view/current view is gray pauls Outlook - Using Contacts 0 August 16th 06 07:16 PM
Customize Current View in OL 03 Bob S Outlook - General Queries 0 July 4th 06 10:37 PM
Problem selecting fields in customize current view Dave Outlook - Using Contacts 0 February 15th 06 06:14 PM


All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.