Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default Image Named Range

Hello,

I have a problem with Named Ranges for Images in Excel.
I can get an image to display a cell reference. Thats no problem.

But i want an image to display an image.
As it sounds now - you're probably thinking "Just copy the image?"
But it is because i want them to show during different scenarios.

IE.
If "Figure" < "Target" show "UnderTargetImage".
If "Figure" = "Target" show "OnTargetImage".
If "Figure" "Target" show "OverTargetImage".

That sort of thing. The main images are held on a separate sheet,
called "Data" (Along with graph data etc).
Is this possible??

Regards,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Image Named Range

Here is one I use (probably can be vastly improved) that has named shapes on
another sheet that is selected using a drop down. Modify to suit

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
Dim Shp As Shape
On Error GoTo PictureNotFound
Worksheets("Sheet1").Shapes(Me.Range("A1").Value). Copy
'Worksheets("Sheet1").Shapes("don1").Copy

'Delete the previous picture
For Each Shp In Me.Shapes
If Shp.Type = msoPicture Then
If Shp.TopLeftCell.Address = "$C$1" Then
If Shp.Name < Range("A1").Value Then Shp.Delete
End If
End If
Next
Worksheets("Sheet2").Paste
With Selection
.Name = Range("A1").Value
.Top = Range("C1").Top
.Left = Range("C1").Left
End With
Range("A1").Select
Exit Sub
PictureNotFound: MsgBox "Picture not found!" & vbNewLine _
& "Check Name."
End If
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"NPell" wrote in message
...
Hello,

I have a problem with Named Ranges for Images in Excel.
I can get an image to display a cell reference. Thats no problem.

But i want an image to display an image.
As it sounds now - you're probably thinking "Just copy the image?"
But it is because i want them to show during different scenarios.

IE.
If "Figure" < "Target" show "UnderTargetImage".
If "Figure" = "Target" show "OnTargetImage".
If "Figure" "Target" show "OverTargetImage".

That sort of thing. The main images are held on a separate sheet,
called "Data" (Along with graph data etc).
Is this possible??

Regards,


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
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
automatic range - named range give me circular reference... George Thorogood Excel Discussion (Misc queries) 0 February 22nd 07 07:53 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Can I use named range in data range box when creating pie chart? BJackson Charts and Charting in Excel 2 August 17th 05 05:37 PM


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