Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook item display and close

Status
Not open for further replies.

pluto4791

Technical User
Oct 17, 2009
2
AU
I've written some code that displays a particular outlook folder......

Set myItem = myFolder.Items(1)
myItem.Display

But I'm having trouble closing it

The following code gives an error message

myItem.Close

It seems that it should be simple but I can't get anything to work........

 
The following code gives an error message
Why not post the error message ?

Anyway, replace this:
myItem.Close
with either this:
myItem.Close olDiscard
or this:
myItem.Close olPromptForSave
or this:
myItem.Close olSave

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 

Thanks but I tried all three of your suggestions and I get this same error message:-

Object doesn't support this property or method (Error 438)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top