Cory Posted May 22, 2008 Report Share Posted May 22, 2008 Simple problem: Outlook mail reading window has a header with fields such as From, Sent, Subject and so on and I want to get the date and subject into a string var. Difficulties: Since the fields I want can not be predetermined I have to define control vars with the index method. A varying number of controls means the index number varies. The Control Class changes as well. Challenge: How would you approach the problem? My thinking so far: Create a loop that will incrementally evaluate each control by incrementing the index number. When it finds one that is of the type “Static” it can grab the control text and if it equals “Sent:” I know the next index number is N+1. Also I know the class will be “RichEdit20WPT” so I can do a Get Control using the Run Macro in Variable and get my date sent field. I ran into a technical problem that is probably unrelated so while I run that down I thought I would see if anyone has a better idea since this one is a little convoluted. Thanks! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.