Results 1 to 8 of 8

Thread: [RESOLVED] Outlook (and non consistant ms programming)

  1. #1

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Resolved [RESOLVED] Outlook (and non consistant ms programming)

    Hello.

    Hi.

    Right, I have an object set to outlook (works) and can create mail from it (great!) but I cannot get the application to become visible.

    Before you go n say it is one of the following - it isn't as there isn't a property/ method for it...

    Display (works for the email but not the app)
    Visible
    Show

    Since I haven't used Outlook VBA coding much (if ever) I would like to know if there is a resource explaining anything to do with Outlook vb coding that people have come across, or if there is some simplistic code to do this.

    Thanks in advance.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  2. #2
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Outlook (and non consistant ms programming)

    okay let's try

    Logon instead..
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  3. #3

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Outlook (and non consistant ms programming)

    What?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Outlook (and non consistant ms programming)

    VB Code:
    1. Dim obOut As Object
    2. Set obOut = CreateObject("Outlook.Application")
    3. obOut.Session.Logon

    Outlook is not the easiest of things to use mind..
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  5. #5

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Outlook (and non consistant ms programming)

    Wow. what a neat idea (NOT)

    Stoopid MS

    Right that logged on, the app appeared then vanished.
    So might be closer, but no cigar yet.

    Thanks for the help... I'll kick my football after I write microsoft on it. More fun!

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  6. #6
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Outlook (and non consistant ms programming)

    Looking at it I think that the MAPIFolder.Display might work better.. Try this one instead..

    VB Code:
    1. Dim obOT As Outlook.Application
    2.   Dim obNS As Outlook.Namespace
    3.   Dim obFD As Outlook.MAPIFolder
    4.   Set obOT = CreateObject("Outlook.Application")
    5.   Set obNS = obOT.GetNamespace("MAPI")
    6.   Set obFD = obNS.GetDefaultFolder(olFolderInbox)
    7.   obFD.Display
    8.    
    9.   Set obFD = Nothing
    10.   Set obNS = Nothing
    11.   Set obOT = Nothing
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  7. #7

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Outlook (and non consistant ms programming)

    I was going to say nothing, but it is there now.

    Can you take me through the steps?
    Like what is namespace and MAPI (I can tell what the inbox one is)

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  8. #8
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: [RESOLVED] Outlook (and non consistant ms programming)

    The NameSpace Object
    Quote Originally Posted by From VBA Help
    Represents an abstract root object for any data source. The object itself provides methods for logging in and out, accessing storage objects directly by ID, accessing certain special default folders directly, and accessing data sources owned by other users.
    The MAPIFolder Object

    Quote Originally Posted by From VBA Help
    Represents a Microsoft Outlook folder. A MAPIFolder object can contain other MAPIFolder objects, as well as Outlook items. You can navigate nested folders by using a combination of Folders (index), which returns a folder within a name space or another folder, and the Parent property, which returns the containing object.

    Note Search folders are not MAPIFolder objects and therefore, the methods and properties of a MAPIFolder object will not work on search folders
    These are the folders that can be referred are..

    olFolderCalendar, olFolderContacts, olFolderDeletedItems, olFolderDrafts, olFolderInbox, olFolderJournal, olFolderNotes, olFolderOutbox, olFolderSentMail, olFolderTasks, olPublicFoldersAllPublicFolders, and olFolderJunk.
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width