A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Copy a picture from one object to another



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 8th 06, 11:53 AM posted to microsoft.public.outlook.program_forms
philippe
external usenet poster
 
Posts: 14
Default Copy a picture from one object to another

Hello,

I'm trying to copy a picture from one object to another as refered in the
following MSDN Library article.
But all what I get is an error telling me that this object can not use the
method or property.
Any idea what's going wrong ?

Thanks,
Philippe
____________________
http://msdn.microsoft.com/library/de...oyourforms.asp

"Copy a picture from one object to another.
Once a picture is loaded or pasted onto a form or into a picture box or
image control, you can assign it to other forms, picture boxes, or image
controls at run time. For example, this statement copies a picture from a
picture box named picDisplay to an image control named imgDisplay:
Set imgDisplay.Picture = picDisplay.Picture"
____________________________


Here is the code I use :
-----------

Function Item_Open()

Set objNameSpace = Item.Application.GetNameSpace("MAPI")
set fold1 = objNameSpace.Folders("Dossiers publics")
set fold2 = fold1.Folders("Tous les dossiers publics")
set fold3 = fold2.Folders("test")
set fold4 = fold3.Folders("oneOffedForms")
Set objContacts = fold4.Items

iNumItems = objContacts.Count


For i = 1 to iNumItems
Set objContact = objContacts.item(i)

If objContact.LastName = item.LastName then set objContactPhotoSource =
objContact

If objContact.LastName = item.LastName then Set item.Image4.Picture =
objContactPhotoSource.stockPhoto.Picture

Next

End Function
-------------------

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email object JMG Outlook and VBA 1 April 21st 06 03:27 PM
You made changes to another copy of this object... Noppie Outlook - General Queries 0 February 20th 06 06:53 PM
Object can not be found naguaramipana Outlook - General Queries 3 January 30th 06 06:17 AM
picture export Tomkat743 Outlook and VBA 1 January 9th 06 07:55 AM
Include PictureFormatHTML send picture will not remain checked JimM Outlook Express 3 January 9th 06 03:12 AM


All times are GMT +1. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.