Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Replace the image in a "controlbox image"....

Hi
I have in my sheet a logo that is inside a "controlbox image". The box is
already formatted.

Bur know i ahve to give my users the option of repalcing the logo, but
retein all the format of the "box" (position, back golor, etc...)

How can o do this??

Thanks a lot!!

P.S: i already have the code for asking the userr for the new logo... i just
cant make the "box" appear with the new selected image.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Replace the image in a "controlbox image"....

Dim sFile As String
Dim oleObj As OLEObject

sFile = "<path\myPic.gif"
Set oleObj = ActiveSheet.OLEObjects("Image1")
oleObj.Object.Picture = LoadPicture(sFile)

If you get an error with LoadPicture highlit "function not defined", add a
reference to "OLE Automation" in Tools references.

Consider too the Autosize and PicturesizeMode properties of the image
control

Regards,
Peter T

"SpeeD" wrote in message
...
Hi
I have in my sheet a logo that is inside a "controlbox image". The box is
already formatted.

Bur know i ahve to give my users the option of repalcing the logo, but
retein all the format of the "box" (position, back golor, etc...)

How can o do this??

Thanks a lot!!

P.S: i already have the code for asking the userr for the new logo... i
just
cant make the "box" appear with the new selected image.



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
Protecting/Unprotecting all sheets with macro leads to "image" iss MikeR Excel Worksheet Functions 3 February 22nd 10 09:33 PM
Automatically adding image extension ".jpg" to end of image name Alain Excel Discussion (Misc queries) 3 June 19th 08 03:21 PM
Image.Picture = LoadPicture("http://...") Phil Excel Programming 1 May 19th 07 08:47 AM
Creating a "sensitive regions" image on a form Zorro[_4_] Excel Programming 1 May 13th 06 09:45 AM
Controlling image filenames during "Save As Webpage" ... Greg_Del_Pilar Excel Programming 2 October 8th 03 07:56 AM


All times are GMT +1. The time now is 01:38 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"