Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsft Outlook Email and QTP
#4
Not Solved
Hi Sreekanth ,

When i am trying to use ur code
Code:
Set olApp = CreateObject("Microsoft.Outlook")
Set olns = olApp.GetNameSpace("MAPI")
Set objFolder = olns.GetDefaultFolder(2)
For each item in objFolder.Items
    If item.Unread Then
        msgbox item.body
    EndIf
Next

Error :Expected EndIf statement is poping up on my qtp screen
Reply


Messages In This Thread
Microsft Outlook Email and QTP - by siri - 01-04-2010, 12:53 PM
RE: Microsft Outlook Email and QTP - by Saket - 01-04-2010, 01:34 PM
RE: Microsft Outlook Email and QTP - by siri - 01-04-2010, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting Email Body from Outlook waseem.khan.91 0 2,174 03-04-2019, 02:53 PM
Last Post: waseem.khan.91
  Extracting Email Body from Outlook waseem.khan.91 0 1,191 03-01-2019, 02:51 PM
Last Post: waseem.khan.91
  Find the email using subject with the help of vb script Raheem Shaik 0 1,696 12-12-2018, 02:57 PM
Last Post: Raheem Shaik
  Cannot attach the text file to email arpan 2 3,423 07-19-2013, 12:13 AM
Last Post: arpan
  Unable to send an email from Outlook which is already opened as draft attiliv 0 2,237 03-24-2013, 11:14 AM
Last Post: attiliv

Forum Jump:


Users browsing this thread: 2 Guest(s)