Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / May 2004

Tip: Looking for answers? Try searching our database.

oItem.FileAs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jrose@unumprovident.com - 25 May 2004 14:07 GMT
After many happy months of use, my custom form has suddenly decided
that "object does not support this property or method: oItem.FileAs".
Since this is a business app, we are getting help desk tickets. Any
ideas why this would suddenly quit working? the section of code goes
like this:

    Public Function ReadSettings()
        Dim oCurrentFolder
        Set oCurrentFolder = Application.ActiveExplorer.CurrentFolder

        Dim oSettingsFolder
        Set oSettingsFolder = oCurrentFolder.Folders(sSettingsFolder)

        Dim oItem
        For Each oItem In oSettingsFolder.Items
            If UCASE(oItem.FileAs) = UCASE(sSettingsField) Then
                ReadSettings = oItem.Body
            End If
        Next
    End Function

Thanks in advance for your help.
Sue Mosher [MVP-Outlook] - 25 May 2004 15:06 GMT
Check the Class property of the object (oItem) that is producing the error.
Chances are that it is not a ContactItem object.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> After many happy months of use, my custom form has suddenly decided
> that "object does not support this property or method: oItem.FileAs".
[quoted text clipped - 18 lines]
>
> Thanks in advance for your help.
Ken Slovak - [MVP - Outlook] - 25 May 2004 15:52 GMT
Is this being run while in a contacts folder as the current folder? Is it
possible that a DL is in that folder? Only ContactItem's support the FileAs
property.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> After many happy months of use, my custom form has suddenly decided
> that "object does not support this property or method: oItem.FileAs".
[quoted text clipped - 18 lines]
>
> Thanks in advance for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.