Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12275

Re: VBScript to get most recent subject headings from specific (not inbox) folder

Newsgroups microsoft.public.scripting.vbscript
Subject Re: VBScript to get most recent subject headings from specific (not inbox) folder
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <3b4371c1-0b5f-4c5a-a582-0187a18130f1@googlegroups.com>
Date 2020-05-28 12:48 +0200
Message-ID <XnsABCB825D4C7D2eejj99@194.109.6.166> (permalink)

Show all headers | View raw


Dan Campbell <dcwhatthe@gmail.com> wrote on 28 May 2020 in
microsoft.public.scripting.vbscript: 

> 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

Methinks this is ment to be VBA, not VBS,
and this is a VBS-NG.

Look here:

<https://docs.microsoft.com/en-us/office/vba/outlook/concepts/getting-
started/automating-outlook-from-a-visual-basic-application>


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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