Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Importing to Excel from an Outlook Form

Hi all.

I'm posting the solution to this problem incase anyone runs into this
in the future.

My problem was that I needed to import the data from TextBoxes in a
form in an email generated by an Outlook template.

The solution is as follows:

For Each pMail In Fldr.Items
If InStr(olMail.Subject, "Subject Title to Search for here")
0 Then
Set objItem = pMail.GetInspector.ModifiedFormPages("NAME OF
FORM PAGE HERE")
ActiveSheet.Cells(i, 1).Value = objItem.TextBox1
ActiveSheet.Cells(i, 2).Value = objItem.TextBox2
ActiveSheet.Cells(i, 3).Value = objItem.TextBox3
i = i + 1
End If
Next pMail

where objItem is declared as an object and pMail as a Variant.
References: Microsoft Outlook 9.0 Oject Library and Microsoft Forms 2.0
Object Library have to be installed.

Thanks to Bob Phillips for pointing me in the direction of this
solution.

Semiaza.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Text from Outlook into Excel Daren Excel Discussion (Misc queries) 5 October 12th 08 12:55 PM
Importing Excel via Outlook mking Excel Discussion (Misc queries) 0 April 25th 08 08:31 PM
How to set up reminders in Outlook when importing from Excel? Victor Excel Discussion (Misc queries) 0 August 4th 06 03:42 PM
Importing from Excel in to outlook Jay Excel Discussion (Misc queries) 1 July 27th 05 09:23 PM
Importing Excel -> Outlook Calendar rsawalker Excel Discussion (Misc queries) 1 July 5th 05 07:15 PM


All times are GMT +1. The time now is 12:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"