Search Email, Return Results

AirAssault

New Member
Joined
Jul 10, 2014
Messages
10
I've search the internet for what I'm needing but I've come up short.

Basically, I have a userform with a button and two textboxes. When I press the button, it should search for email subjects that CONTAINS the keyword in the txtbox1.value. Most of what I've seen on the internet is code for exact matches and not 'if it contains' a certain value.

Also, I'm trying to return results found to display in a textbox2.value. For example, If i searched for 'Air Assault' it should display in textbox2.value = "Air Assault" & vbnewline & "Air Assault 101" & vbnewline & "Air Assault Screaming Eagle" because all these emails contain Air Assault in the Subject line.

In Summary, how would you search email subjects that contain keywords based on a textbox value and then return the results in a different textbox.

Using Office 2010. I'm continuing my search and still expirementing, will post my results if a solution is found, I appreciate any help. Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,517
Messages
6,125,287
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top