<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-21992565.post3909029613609180578..comments</id><updated>2011-01-26T20:51:59.856+01:00</updated><category term='it-experts.dk'/><category term='block'/><category term='public beta'/><category term='group policies'/><category term='SQL'/><category term='regional options'/><category term='Outlook'/><category term='Patching'/><category term='SQL Injection'/><category term='registry'/><category term='mdop'/><category term='Security Guide'/><category term='Windows Server 2008'/><category term='software restriction policies'/><category term='updates'/><category term='whitepaper'/><category term='generalize'/><category term='dop'/><category term='terminal services'/><category term='group policy preferences'/><category term='online scanner'/><category term='encryption'/><category term='MSDN'/><category term='admx'/><category term='group policy'/><category term='softgrid'/><category term='windows xp'/><category term='webcast'/><category term='RSAT'/><category term='rdp'/><category term='language pack'/><category term='WMI Filters'/><category term='Mac'/><category term='runas'/><category term='Longhorn'/><category term='technet magazine'/><category term='mlgpo'/><category term='security id'/><category term='mstsc'/><category term='GPDBPA'/><category term='Shared Computer Toolkit'/><category term='xp'/><category term='x64'/><category term='gpo'/><category term='backup'/><category term='adml'/><category term='scripting'/><category term='Shadow Groups'/><category term='orlando'/><category term='windows server 2003'/><category term='Windows Vista'/><category term='specops'/><category term='Security Descriptors'/><category term='sysvol'/><category term='srp'/><category term='webinar'/><category term='security'/><category term='guid'/><category term='Microsoft Application Virtualization'/><category term='Activation'/><category term='MVP'/><category term='policy'/><category term='language'/><category term='best practice analyzer'/><category term='anti-malware'/><category term='wsus'/><category term='gui'/><category term='TechEd'/><category term='service pack'/><category term='hacker'/><category term='beta'/><category term='VBA'/><category term='Jeremy Moskowitz'/><category term='SteadyState'/><category term='UAC'/><category term='software'/><category term='BPA'/><category term='remote desktop'/><category term='network'/><category term='release'/><category term='Darren Mar-Elia'/><category term='exploit'/><category term='anti-virus'/><category term='vista'/><category term='agpm'/><category term='Core'/><category term='Unix'/><category term='display language'/><category term='virtualization'/><category term='starter gpo'/><category term='cab'/><category term='language interface packs'/><category term='public'/><category term='mav'/><category term='kb'/><category term='group policy extensions'/><category term='Powershell'/><category term='connection'/><category term='64bit'/><category term='PolicyMaker'/><category term='OU Filtering'/><category term='hacking'/><category term='endpointsecurity'/><category term='template'/><category term='Oracle'/><category term='mmc'/><category term='The onion ring'/><category term='mui'/><category term='CEH'/><category term='gpanswers.com'/><category term='gp preferences'/><category term='windowsecurity.com'/><category term='download'/><category term='Tor'/><category term='technet'/><category term='ISA'/><category term='online scanners'/><category term='script'/><category term='posters'/><category term='windows'/><category term='newsid'/><category term='starter gpos'/><category term='central store'/><category term='gfi'/><category term='VM Ware'/><category term='database'/><category term='Windows 7'/><category term='baseline'/><category term='gpmc'/><category term='Certified Ethical Hacker'/><category term='Fine-Grained Password Policies'/><category term='radio'/><category term='Certification'/><category term='knowledge base'/><category term='connect'/><category term='Site Filtering'/><category term='AppLocker'/><category term='Granular Password Settings'/><category term='deployment'/><category term='videos'/><category term='gpedit.msc'/><category term='Security Filtering'/><category term='Client Side Extensions'/><category term='virtual server'/><category term='Solution Accelerator'/><category term='desktop optimization pack'/><category term='sysprep'/><category term='multilingual'/><category term='gpoguy.com'/><category term='sid'/><category term='ctp'/><category term='Linux'/><category term='gpedit'/><category term='server'/><category term='microsoft'/><category term='DesktopStandards'/><category term='multihomed'/><category term='article'/><category term='administrative templates'/><category term='u2'/><category term='password'/><category term='problem'/><category term='BitLocker'/><title type='text'>Comments on heidelbergit: Get email address of all users from all mails in a...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.heidelbergit.dk/feeds/3909029613609180578/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html'/><author><name>Jakob H. Heidelberg</name><uri>http://www.blogger.com/profile/05947807953068058636</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21992565.post-428471498279007239</id><published>2011-01-26T16:57:13.490+01:00</published><updated>2011-01-26T16:57:13.490+01:00</updated><title type='text'>Thank you so much for this code!!!

In case you wa...</title><content type='html'>Thank you so much for this code!!!&lt;br /&gt;&lt;br /&gt;In case you want to insert a line break after each e-mail address (instead of the semicolon) - here&amp;#39;s the code:&lt;br /&gt;&lt;br /&gt;Sub GetEmailAddressesInFolder()&lt;br /&gt;Dim objFolder As MAPIFolder&lt;br /&gt;Dim strEmail As String&lt;br /&gt;Dim strEmails As String&lt;br /&gt;Dim objItem As Object&lt;br /&gt;&lt;br /&gt;Set objFolder = Application.GetNamespace(&amp;quot;Mapi&amp;quot;).PickFolder&lt;br /&gt;&lt;br /&gt;For Each objItem In objFolder.Items&lt;br /&gt;If objItem.Class = olMail Then&lt;br /&gt;strEmail = objItem.SenderEmailAddress&lt;br /&gt;If InStr(strEmails, strEmail) = 0 Then strEmails = strEmails + strEmail &amp;amp; Chr$(13)&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;Debug.Print strEmails&lt;br /&gt;End Sub</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/428471498279007239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/428471498279007239'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1296057433490#c428471498279007239' title=''/><author><name>Lateef</name><uri>http://www.blogger.com/profile/08979565542258277357</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1145062024'/></entry><entry><id>tag:blogger.com,1999:blog-21992565.post-2732826461026141099</id><published>2009-12-16T00:44:29.345+01:00</published><updated>2009-12-16T00:44:29.345+01:00</updated><title type='text'>Problem 2

Sub GetEmailAddressesInFolder()
Dim obj...</title><content type='html'>Problem 2&lt;br /&gt;&lt;br /&gt;Sub GetEmailAddressesInFolder()&lt;br /&gt;Dim objFolder As MAPIFolder&lt;br /&gt;Dim strEmail As String&lt;br /&gt;Dim strSender As String&lt;br /&gt;Dim strEmails As String&lt;br /&gt;Dim objItem As Object&lt;br /&gt;Dim fs, a&lt;br /&gt;&lt;br /&gt;Set objFolder = Application.GetNamespace(&amp;quot;Mapi&amp;quot;).PickFolder&lt;br /&gt;&lt;br /&gt;Set fs = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;Set a = fs.CreateTextFile(&amp;quot;c:\temp\testfile.txt&amp;quot;, True)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Each objItem In objFolder.Items&lt;br /&gt;If objItem.Class = olMail Then&lt;br /&gt;strEmail = objItem.SenderEmailAddress&lt;br /&gt;strSender = objItem.SenderName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If InStr(strEmails, strEmail) = 0 Then&lt;br /&gt;a.WriteLine strSender &amp;amp; &amp;quot;, &amp;quot; &amp;amp; strEmail&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;a.Close&lt;br /&gt;End Sub</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/2732826461026141099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/2732826461026141099'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1260920669345#c2732826461026141099' title=''/><author><name>md</name><uri>http://www.blogger.com/profile/01069488397371101833</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-135618397'/></entry><entry><id>tag:blogger.com,1999:blog-21992565.post-6651634784552596459</id><published>2009-12-16T00:41:30.279+01:00</published><updated>2009-12-16T00:41:30.279+01:00</updated><title type='text'>Problem 2

Set fs = CreateObject(&amp;quot;Scripting.F...</title><content type='html'>Problem 2&lt;br /&gt;&lt;br /&gt;Set fs = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;Set a = fs.CreateTextFile(&amp;quot;c:\temp\testfile.txt&amp;quot;, True)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Each objItem In objFolder.Items&lt;br /&gt;If objItem.Class = olMail Then&lt;br /&gt;strEmail = objItem.SenderEmailAddress&lt;br /&gt;strSender = objItem.SenderName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If InStr(strEmails, strEmail) = 0 Then&lt;br /&gt;a.WriteLine strSender &amp;amp; &amp;quot;, &amp;quot; &amp;amp; strEmail&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;a.Close</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6651634784552596459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6651634784552596459'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1260920490279#c6651634784552596459' title=''/><author><name>md</name><uri>http://www.blogger.com/profile/01069488397371101833</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-135618397'/></entry><entry><id>tag:blogger.com,1999:blog-21992565.post-7414919051049666186</id><published>2009-03-06T18:26:00.000+01:00</published><updated>2009-03-06T18:26:00.000+01:00</updated><title type='text'>Necessity is the mother of invention, I guess.  He...</title><content type='html'>Necessity is the mother of invention, I guess.  Here's what I came up with, and it seems to work well.  I didn't solve problem #2, but it's no big deal to copy and paste:&lt;BR/&gt;&lt;BR/&gt;Sub GetEmailAddresses()&lt;BR/&gt;Dim objFolder As MAPIFolder&lt;BR/&gt;Dim strEmails As String&lt;BR/&gt;&lt;BR/&gt;Set objFolder = Application.GetNamespace("Mapi").PickFolder&lt;BR/&gt;strEmails = GetEmailAddressesInFolder(objFolder, "")&lt;BR/&gt;Debug.Print strEmails&lt;BR/&gt;End Sub&lt;BR/&gt;&lt;BR/&gt;Function GetEmailAddressesInFolder(objFolder As Object, strEmails As String)&lt;BR/&gt;Dim strEmail As String&lt;BR/&gt;Dim strOutput As String&lt;BR/&gt;Dim objItem As Object&lt;BR/&gt;Dim objSubFolder As Object&lt;BR/&gt;&lt;BR/&gt;strOutput = strEmails&lt;BR/&gt;&lt;BR/&gt;For Each objSubFolder In objFolder.Folders&lt;BR/&gt;    strOutput = GetEmailAddressesInFolder(objSubFolder, strOutput)&lt;BR/&gt;Next&lt;BR/&gt;&lt;BR/&gt;For Each objItem In objFolder.Items&lt;BR/&gt;    If objItem.Class = olMail Then&lt;BR/&gt;        strEmail = objItem.SenderEmailAddress&lt;BR/&gt;        If InStr(strEmails, strEmail) = 0 Then strOutput = strOutput + ";" + strEmail&lt;BR/&gt;    End If&lt;BR/&gt;Next&lt;BR/&gt;&lt;BR/&gt;GetEmailAddressesInFolder = strOutput&lt;BR/&gt;End Function</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/7414919051049666186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/7414919051049666186'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1236360360000#c7414919051049666186' title=''/><author><name>eglzfan</name><uri>http://www.blogger.com/profile/05547201438754345407</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1491757318'/></entry><entry><id>tag:blogger.com,1999:blog-21992565.post-6518485004553348557</id><published>2009-03-06T03:38:00.000+01:00</published><updated>2009-03-06T03:38:00.000+01:00</updated><title type='text'>Hi Mike,&lt;br&gt;&lt;br&gt;I'd really like to help you out tw...</title><content type='html'>Hi Mike,&lt;BR/&gt;&lt;BR/&gt;I'd really like to help you out tweaking the code, but as things look right now I simply don't have the time - very sorry!&lt;BR/&gt;&lt;BR/&gt;If time should arise out of nowhere, I'll post the solutions for your requests here. I can't promise you anything right now.&lt;BR/&gt;&lt;BR/&gt;Best regards&lt;BR/&gt;Jakob</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6518485004553348557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6518485004553348557'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1236307080000#c6518485004553348557' title=''/><author><name>Jakob H. Heidelberg</name><uri>http://www.blogger.com/profile/05947807953068058636</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1241537759'/></entry><entry><id>tag:blogger.com,1999:blog-21992565.post-6993389082487103278</id><published>2009-03-05T22:09:00.000+01:00</published><updated>2009-03-05T22:09:00.000+01:00</updated><title type='text'>This could be just what the doctor ordered for me,...</title><content type='html'>This could be just what the doctor ordered for me, but I have two slightly different requirements:&lt;BR/&gt;&lt;BR/&gt;(1) I would love it if I could point to one folder and have it process not only the emails in that folder, but also any subfolders.  Can you show me how to tweak the code to do that?&lt;BR/&gt;&lt;BR/&gt;(2) Can the code be tweaked to output to, say, a CSV or text file instead of to the immediate window?  Not a huge deal as I can copy and paste, but this would be nice to have as well.&lt;BR/&gt;&lt;BR/&gt;If you would prefer to email me at eglzfan-[AT]-gmail-[DOT]-com, that would also be much appreciated.&lt;BR/&gt;&lt;BR/&gt;Thanks!&lt;BR/&gt;&lt;BR/&gt;Mike Dunham</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6993389082487103278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21992565/3909029613609180578/comments/default/6993389082487103278'/><link rel='alternate' type='text/html' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html?showComment=1236287340000#c6993389082487103278' title=''/><author><name>eglzfan</name><uri>http://www.blogger.com/profile/05547201438754345407</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.heidelbergit.dk/2009/01/get-email-address-of-all-users-from-all.html' ref='tag:blogger.com,1999:blog-21992565.post-3909029613609180578' source='http://www.blogger.com/feeds/21992565/posts/default/3909029613609180578' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1491757318'/></entry></feed>
