Preskoči na glavno vsebino

Kako v Outlooku združiti in razvrstiti e-pošto po mesecih?

E-poštna sporočila so privzeto razvrščena po datumu prejema v mapi Prejeto v Outlooku. Vendar ni nobenega ukaza za razvrščanje ali razvrščanje vseh e-poštnih sporočil po prejetem mesecu. Tukaj bom predstavil način združevanja in razvrščanja vseh e-poštnih sporočil po mesecih v programu Outlook.

E-poštna sporočila v Outlooku združite ali razvrstite po mesecih s kodo VBA


E-poštna sporočila v Outlooku združite ali razvrstite po mesecih s kodo VBA

Ta metoda vas bo vodila do ustvarjanja novega stolpca, imenovanega mesec, nato uporabite makro VBA, da v novi stolpec izvlečete prejeti mesec, nato pa lahko vsa e-poštna sporočila razvrstite ali razvrstite po stolpcu mesec v programu Outlook.

1.  Odprite poštno mapo, v kateri boste razvrstili ali razvrstili e-poštna sporočila po mesecih, in kliknite Ogled nastavitev gumb na Poglej jeziček v programu Outlook 2010 in novejših različicah.

doc razvrsti e-pošto po 1. mesecu

Opomba: V programu Outlook 2007 lahko kliknete Poglej > Trenutni pogled > Prilagodite trenutni pogled.

2. V prihodnosti Napredne nastavitve pogleda / Prilagodi pogled pogovorno okno, kliknite na Stolpci gumb (ali Področja gumb).

doc razvrsti e-pošto po 2. mesecu

3. V Pokaži stolpec / polja pogovorno okno, kliknite na Nov stolpec gumb (ali Novo polje tipko), da odprete pogovorno okno Nov stolpec / polje, vnesite mesec v Ime škatla, obdrži Besedilo izbrano v obeh tip polje in oblikovana in nato kliknite OK . Oglejte si spodnji posnetek zaslona:

doc razvrsti e-pošto po 3. mesecu

4.  Zdaj se vrnete na Pokaži stolpce / polja v pogovornem oknu kliknite, da izberete mesec element v Pokaži te stolpce (ali Področja) v tem vrstnem redu in ga premaknite pod Prejeto s klikom na Premakni navzgor in končno kliknite OK gumb.

doc razvrsti e-pošto po 4. mesecu

5. Kliknite OK , da zaprete Napredne nastavitve pogleda / Prilagodi pogled pogovorno okno.

6. V začetni mapi izberite vsa e-poštna sporočila, tako da izberete poljubno e-pošto in nato pritisnete Ctrl + A tipke hkrati.

Opombe: Če je Bralno podokno se vklopi, zaprite ga s klikom na Poglej > Bralno podokno > off.

7. Odprite Microsoft Visual Basic za aplikacije okno s pritiskom na druga + F11 Medtem pritisnite tipke in nato kliknite Vstavi > Moduli.

8. V modul prilepite naslednji makro VBA:

VBA: razvrstite ali združite e-poštna sporočila po mesecih

Sub ListSelectionMonth()
	Dim aObj As Object
	Dim oProp As Outlook.UserProperty
	Dim sMonth
	
	On Error Resume Next
	
	For Each aObj In Application.ActiveExplorer.Selection
		Set oMail = aObj
		
		sMonth = Month(oMail.ReceivedTime)
		Set oProp = oMail.UserProperties.Add("Month", olText, True)
		oProp.Value = sMonth
		oMail.Save
		
		Err.Clear
	Next
	
End Sub

9. Pritisnite tipko F5 ključ za zagon tega makra VBA.

10. Zdaj je vsak prejeti mesec e-pošte razčlenjen v naslednje mesec stolpec. Če želite v tej uvodni mapi razvrstiti vsa e-poštna sporočila po mesecih, kliknite glavo stolpca mesec. Oglejte si posnetek zaslona:

doc razvrsti e-pošto po 5. mesecu

Opombe: Če želite v tej uvodni mapi zbrati vsa e-poštna sporočila po mesecih, z desno miškino tipko kliknite glavo stolpca mesecin nato izberite Razvrsti po tem polju v meniju z desnim klikom. Oglejte si posnetek zaslona:

doc razvrsti e-pošto po 6. mesecu


Najboljša pisarniška orodja za produktivnost

Kutools za Outlook - Več kot 100 zmogljivih funkcij za nadgradnjo vašega Outlooka

📧 Avtomatizacija e-pošte: Odsoten (na voljo za POP in IMAP)  /  Načrtujte pošiljanje e-pošte  /  Samodejna CC/BCC po pravilih pri pošiljanju e-pošte  /  Samodejno naprej (napredna pravila)   /  Samodejno dodaj pozdrav   /  E-poštna sporočila več prejemnikov samodejno razdeli na posamezna sporočila ...

📨 Email upravljanje: Enostaven priklic e-pošte  /  Blokiraj prevarantska e-poštna sporočila glede na teme in druge  /  Izbriši podvojena e-poštna sporočila  /  napredno iskanje  /  Združite mape ...

📁 Priloge ProShrani paket  /  Batch Detach  /  Paketno stiskanje  /  Samodejno shranite   /  Samodejno loči  /  Samodejno stiskanje ...

🌟 Vmesnik Magic: 😊Več lepih in kul emojijev   /  Povečajte Outlookovo produktivnost s pogledi z zavihki  /  Minimizirajte Outlook, namesto da bi ga zaprli ...

???? Čudeži z enim klikom: Odgovori vsem z dohodnimi prilogami  /   E-poštna sporočila proti lažnemu predstavljanju  /  🕘Pokaži pošiljateljev časovni pas ...

👩🏼‍🤝‍👩🏻 Stiki in koledar: Paketno dodajanje stikov iz izbranih e-poštnih sporočil  /  Razdelite skupino stikov na posamezne skupine  /  Odstranite opomnike za rojstni dan ...

Over 100 Lastnosti Čakajte na svoje raziskovanje! Kliknite tukaj, če želite odkriti več.

 

 

Comments (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have Outlook 2007 and have try that VBA. First I did have the problem that only 1 E-Mail of all get the month show.
I needed to mark all E-Mails first and then push in VBA F5 to show in all E-Mails the month.

a bad part of that code is that all month (1, 2, 3, 4, 5, 6, 7, 8, 9) get grouped on the wrong position in front of 10, 11, 12
is there any additional VBA sequence what add to the first 9 Month a 0? ergo 01, 02, 03 etc?

as I have several years in some folders it make sense to group those E-Mails first by year and after that by Month.
This comment was minimized by the moderator on the site
Strange.
Made a restart. Now it works.Sorry for bothering.
Thx again :) <3
This comment was minimized by the moderator on the site
Sorry. Didn't saw that the page is origin in english. #emabarrased
Google translate is getting better. :D
Hello from Hamburg,
great stuff. Thanks for this. :)
Only a small problem.
I had first adapted the code so that it puts the year and month together for me.

Sub ListSelectionYearMonth()
Dim aObj As Object
Dim oProp As Outlook.UserProperty
Dim oMail As Object
Dim sMonth
Dim sYear
Dim sYearMonth

On Error Resume Next

For Each aObj In Application.ActiveExplorer.Selection
Set oMail = aObj

sMonth = Month(oMail.ReceivedTime)
sYear = Year(oMail.ReceivedTime)

If sMonth < 10 Then
sMonth = 0 & sMonth
Else
sMonth = sMonth
End If

sYearMonth = sYear & "/" & sMonth
Set oProp = oMail.UserProperties.Add("YearMonth", olText, True)
oProp.Value = sYearMonth
oMail.Save

Err.Clear
Next

End Sub

This worked wonderfully.
Now I noticed in a folder that a grouping first by year and then by month increases the clarity.
I used the original code.
However, the column there remains empty.

Sub ListSelectionMonth()
Dim aObj As Object
Dim oProp As Outlook.UserProperty
Dim oMail As Object
Dim sMonth

On Error Resume Next

For Each aObj In Application.ActiveExplorer.Selection
Set oMail = aObj

sMonth = Month(oMail.ReceivedTime)

If sMonth < 10 Then
sMonth = 0 & sMonth
Else
sMonth = sMonth
End If

Set oProp = oMail.UserProperties.Add("Month", olText, True)
oProp.Value = sMonth
oMail.Save

Err.Clear
Next

End Sub

I'm a bit perplexed at the moment.

Glad about any advice

VG
Armin


Translated with http://www.DeepL.com/Translator (free version)
This comment was minimized by the moderator on the site
Hallo aus Hamburg,super Sache. Danke dafür. :)Kleines Problem nur.Ich hatte zuerst den Code so angepasst das er mir Jahr und Monat zusammensetzt.
Sub ListSelectionYearMonth()
Dim aObj As Object
Dim oProp As Outlook.UserProperty
Dim oMail As Object
Dim sMonth
Dim sYear
Dim sYearMonth

On Error Resume Next

For Each aObj In Application.ActiveExplorer.Selection
Set oMail = aObj

sMonth = Month(oMail.ReceivedTime)
sYear = Year(oMail.ReceivedTime)

If sMonth < 10 Then
sMonth = 0 & sMonth
Else
sMonth = sMonth
End If

sYearMonth = sYear & "/" & sMonth
Set oProp = oMail.UserProperties.Add("JahrMonat", olText, True)
oProp.Value = sYearMonth
oMail.Save

Err.Clear
Next

End Sub

Hat wunderbar geklappt.Nun ist mir in einem Ordner aufgefallen das eine Gruppierung zuersnach Jahr und dann nach Monat die Übersichtlichkeit noch erhöht.Habe als den ursprünglichen Code genommen.Dort bleibt dann allerdings die Spalte leer.
Sub ListSelectionMonth()
Dim aObj As Object
Dim oProp As Outlook.UserProperty
Dim oMail As Object
Dim sMonth

On Error Resume Next

For Each aObj In Application.ActiveExplorer.Selection
Set oMail = aObj

sMonth = Month(oMail.ReceivedTime)

If sMonth < 10 Then
sMonth = 0 & sMonth
Else
sMonth = sMonth
End If

Set oProp = oMail.UserProperties.Add("Monat", olText, True)
oProp.Value = sMonth
oMail.Save

Err.Clear
Next

End Sub

Macht mich grad etwas ratlos.
Freue mich über jeden Rat
VGArmin
This comment was minimized by the moderator on the site
This will also help.
This comment was minimized by the moderator on the site
The code works as in the article. But it does not apply to new letters. Every time you need to go to the created module in the Visual Basik and press F5.
This comment was minimized by the moderator on the site
I used the above vba and let me begin by saying this does help in micro management which is not available by default. this is beneficial for archival and storage and not something supposed to work automatically for incoming email. I was able to modify this a bit and also add a year column. So for all emails I was able to get a month and year so that I can group and then regroup (by year and then by month). What I did find however is there is some kind of limitation to the number of items it goes through and then exists (not sure why). For example if I were to select a folder with 18k-19k emails, it will loop only through some and then at the end of the run it will not update all the emails with the required. However if you run in smaller batches then it runs perfectly fine. The painful part here is to keep on selecting in batches. This is a pain for people like me who wish to manage or rather arrange years or emails that runs in a 6 figures in numbers. Anyone here been able to figure this out out or willing to go on a troubleshooting spree to fix this or how this can be addressed ?
This comment was minimized by the moderator on the site
That is, I want to group mails by subject and put the group with maximum mails on the top. How can I do that?
This comment was minimized by the moderator on the site
I want to :

1. Group mails by subject

2. Sort them by number of e-mails inside the group

How can I do achieve this?
This comment was minimized by the moderator on the site
I want this too
This comment was minimized by the moderator on the site
Is it possible to create VBA macro to group and sort emails by week?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations