|
-
Aug 17th, 2005, 03:29 AM
#1
Thread Starter
Don't Panic!
[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.
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...
-
Aug 17th, 2005, 03:47 AM
#2
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
-
Aug 17th, 2005, 03:50 AM
#3
Thread Starter
Don't Panic!
Re: Outlook (and non consistant ms programming)
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...
-
Aug 17th, 2005, 04:01 AM
#4
Re: Outlook (and non consistant ms programming)
VB Code:
Dim obOut As Object
Set obOut = CreateObject("Outlook.Application")
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
-
Aug 17th, 2005, 04:04 AM
#5
Thread Starter
Don't Panic!
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!
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...
-
Aug 17th, 2005, 04:09 AM
#6
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:
Dim obOT As Outlook.Application
Dim obNS As Outlook.Namespace
Dim obFD As Outlook.MAPIFolder
Set obOT = CreateObject("Outlook.Application")
Set obNS = obOT.GetNamespace("MAPI")
Set obFD = obNS.GetDefaultFolder(olFolderInbox)
obFD.Display
Set obFD = Nothing
Set obNS = Nothing
Set obOT = Nothing
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Aug 17th, 2005, 04:40 AM
#7
Thread Starter
Don't Panic!
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)
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...
-
Aug 17th, 2005, 04:46 AM
#8
Re: [RESOLVED] Outlook (and non consistant ms programming)
The NameSpace Object
 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
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|