简体   繁体   中英

Search by subject line and email in Outlook using VBA

I'm very new to VBA. I have a range of emails in Column A. What I'm trying is to search outlook for emails based on each email in the range and a subject line. The count of emails should be pasted in Column B. I've been googling and seeing if I can find anything but I've only got pieces of code which I'm unable to put together.

What I found so far is to search by specific email, subject and date (below link) but what I need is to count emails for each email in range and a fixed subject line.

Outlook 365 VBA - Search for sent items with today's date and specific subject. If not found, send email

I'm very new to VBA. I have a range of emails in Column A. What I'm trying is to search outlook for emails based on each email in the range and a subject line. The count of emails should be pasted in Column B. I've been googling and seeing if I can find anything but I've only got pieces of code which I'm unable to put together.

What I found so far is to search by specific email, subject and date (below link) but what I need is to count emails for each email in range and a fixed subject line.

Outlook 365 VBA - Search for sent items with today's date and specific subject. If not found, send email

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM