Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12274
| Newsgroups | microsoft.public.scripting.vbscript |
|---|---|
| Date | 2020-05-27 17:25 -0700 |
| Message-ID | <3b4371c1-0b5f-4c5a-a582-0187a18130f1@googlegroups.com> (permalink) |
| Subject | VBScript to get most recent subject headings from specific (not inbox) folder |
| From | Dan Campbell <dcwhatthe@gmail.com> |
Hi,
I'm confused about how to get emails from a specific folder. Almost all of the examples on the web, are assuming that you're getting data from either inbox, or a subfolder of inbox.
The folder I'm trying to obtain the subject headings from, is called
ThisSpecificFolder
, in this example. There are several other folders, also on the same parent level as inbox. But I'm interested only in this specific folder.
Dim objOutlook
Dim objNamespace
Dim colFolders
Dim objFldr
Dim objItms
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set colFolders = objNamespace.Folders
'// This doesn't seem to be accomplishing it,
'// but I'm not sure what to do next.
Set objFldr = objNamespace.Folders("ThisSpecificFolder")
Set objItms = objFldr.Items
Back to microsoft.public.scripting.vbscript | Previous | Next — Next in thread | Find similar
VBScript to get most recent subject headings from specific (not inbox) folder Dan Campbell <dcwhatthe@gmail.com> - 2020-05-27 17:25 -0700
Re: VBScript to get most recent subject headings from specific (not inbox) folder "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-05-28 12:48 +0200
Re: VBScript to get most recent subject headings from specific (not inbox) folder "Mayayana" <mayayana@invalid.nospam> - 2020-05-28 08:13 -0400
Re: VBScript to get most recent subject headings from specific (not inbox) folder Dan Campbell <dcwhatthe@gmail.com> - 2020-05-28 06:08 -0700
Re: VBScript to get most recent subject headings from specific (not inbox) folder "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-05-28 18:07 +0200
Re: VBScript to get most recent subject headings from specific (not inbox) folder JJ <jj4public@vfemail.net> - 2020-05-28 20:14 +0700
Re: VBScript to get most recent subject headings from specific (not inbox) folder Dan Campbell <dcwhatthe@gmail.com> - 2020-05-28 14:02 -0700
csiph-web