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

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost2.xs4all.net!not-for-mail
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 Thu, 28 May 2020 12:48:55 +0200
Message-ID <XnsABCB825D4C7D2eejj99@194.109.6.166> (permalink)
User-Agent Xnews/2009.05.01
Lines 50
NNTP-Posting-Host cf164828.newszilla.xs4all.nl
X-Trace G=hKFHPTLs,C=U2FsdGVkX19v7Q37M+IxubjrBQpNLSADTOjkZNQ/kiyYYwavK/hf1fViIMGpQfRA36xJJESrT0FDaPVJFLQ3T0abzsdpTPGQZKyvEtSJJSb0tSh/KIJnjEJ0/l4UXvCg
X-Complaints-To abuse@xs4all.nl
Xref csiph.com microsoft.public.scripting.vbscript:12275

Show key headers only | 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 | Unroll thread


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