![]() |
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 |
#8
|
|||
|
|||
![]()
From the KB article you cited:
Follow the steps below to create and run a VBScript routine that will change all the items in a folder to a specified form. This example assumes that you have published a new form called MyNewForm in the current folder. If you use a different name for your form, modify the form name used in the third line of code in the section "Enter the VBScript Code." There are four steps you must take: •Create a new item to store the VBScript code. •Enter the VBScript code and save the form. •Publish the form. •Use the new form. etc. The "Use the new form" means "use it just once to change the existing items." In other words, Form #1 is the new contact form you published. Form #2 is the form that you create, using the steps in the KB article, solely for the purpose of running it once to change the MessageClass property on the existing items. You would likely never use Form #2 again. (And, as an aside, you could run the same code from a VBA procedure instead of the Item_Open event handler in Form #2; it's an old article.) This statement in the code determines which folder it acts on: Set CurFolder = Application.ActiveExplorer.CurrentFolder ActiveExplorer.CurrentFolder is the folder that the user is currently viewing. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Frustrated to the MAX!" wrote in message ... I don't understand the concepts here - I put that code into my custom form and left it there...if it's not supposed to go there, where does it go and how do you run it across a particular folder to have that folders contents reflect the use of the new form? I'm pulling my hair out, I'm a frickin computer science major and this stuff is unbelievably confusing... "Sue Mosher [MVP-Outlook]" wrote: Delete the MsgBox "Done" statement. The code that you cited changes the MessageClass property on existing items so that they will use your custom form. You should run that form only once. You should ****not**** use that code in your own custom form. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Frustrated to the MAX!" wrote in message ... got it to work by inserting code into the form - how do i get rid of the "done" box that now pops up prior to every contact openning? If I eliminate the code in that form, will the contacts keep using the new form, or does the code need to run every time prior to openning a contact? code was found he http://support.microsoft.com/?kbid=290659 "Frustrated to the MAX!" wrote: thanks sue - okay, when I modify a custom form for my contacts, it appears to me that the change is not reflected in all the contacts that use that form ... Am I doing something wrong? And if every contact isn't automatically updated with the same named form it uses (quite unbelievable to me if true), then how do you automatically update all existing contacts using the modified custom form? Please, oh please don't tell me the only solution is to run scripts and modify the registry :-) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
turing reading pane off on all folders | Big-D | Outlook - Installation | 3 | May 3rd 06 04:24 PM |
OL2003 - can you auto-fill a singel new contact form with online form data | TimR | Outlook - Using Contacts | 1 | February 15th 06 01:43 PM |
Outlook opens Form as Email message, not Form | [email protected] | Outlook - General Queries | 2 | January 26th 06 09:54 PM |
set default reading pane view | Marc Seidler | Outlook - General Queries | 1 | January 26th 06 01:25 PM |
Attachment Icons in reading pane | Eeyan | Outlook - General Queries | 3 | January 22nd 06 10:49 AM |