Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Refer to picture stored in workbook

I want to be able to change the Picture property of an Image control
using VBA. The images need to be stored 'in' the workbook, not an
external folder.

In pseudo-code, I need something like:

Sub()
If x = y then

Me.Image1.Picture = ActiveSheet.Shapes("Image1").Picture

Else: Me.Image1.Picture = ActiveSheet.Shapes("Image2").Picture
End If
End Sub

It is very important that I DON'T have to specify a full filepath using
LoadPicture(), as the workbook will be used on different machines
without access to the image folders.

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
Hyperlink stored in an external workbook Tony Starr Excel Discussion (Misc queries) 1 November 14th 07 12:37 AM
how do I refer a cell to workbook name not worksheet esparzaone Excel Discussion (Misc queries) 2 October 2nd 07 09:18 PM
Refer to more than one worksheet in a workbook Göran M Excel Worksheet Functions 0 January 2nd 06 07:02 AM
how to I refer to current workbook without using its name? confused Excel Worksheet Functions 2 June 16th 05 11:50 PM
refer to dynamic range in closed workbook with ADO MattShoreson[_18_] Excel Programming 6 June 13th 05 11:26 AM


All times are GMT +1. The time now is 10:05 PM.

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"