Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-19-2020, 12:40 PM
AlanCantor AlanCantor is offline Macro search query for past 4 weeks? Windows 10 Macro search query for past 4 weeks? Office 2019
Competent Performer
 
Join Date: Nov 2020
Posts: 154
AlanCantor is on a distinguished road
Default

Maybe something like this?


Sub UnifiedInbox()
Dim myOlApp As New Outlook.Application
Z = Date - 30
txtSearch = "received:>=" & Z
myOlApp.ActiveExplorer.Search txtSearch, olSearchScopeAllFolders
Set myOlApp = Nothing
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2010 Not syncing past two weeks out jacijarman Outlook 0 01-25-2016 10:43 AM
Outlook search query: e-mails sent to domains other than a specified set elliotshelton Outlook 0 11-21-2015 01:53 PM
Macro search query for past 4 weeks? Microsoft Access search macro/query algebrapro18 Misc 1 06-18-2014 04:10 PM
Macro search query for past 4 weeks? Odd search and replace query Rabski Word 1 11-13-2012 02:25 PM
Macro search query for past 4 weeks? Filtering past or future events in DRW query criteria jvieille Misc 1 02-11-2006 06:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft