Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I have an image in a cell based upon a referenced value?

What I want to do is have an image of a particular schematic inserted in the
worksheet based upon a referenced cell.

For instance, if A1 equals 10, that would mean I have a 10 pile group.
Therefore throughout the spreadsheet I want images that are applicable to the
10 pile group.

I don't mind if there is a seperate worksheet within the spreadheet where
all of the images are located.

But basically, I want the images to change based upon a calculated value.

Thanks in advance!

Jonathan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I have an image in a cell based upon a referenced value?

use the change event to run code to insert your images. Turn on the macro
recorder while you insert and position the image manually to get the code.

See Chip Pearson's page on events if you are not familiar with them
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Jonathan Neubauer" <Jonathan wrote in
message ...
What I want to do is have an image of a particular schematic inserted in

the
worksheet based upon a referenced cell.

For instance, if A1 equals 10, that would mean I have a 10 pile group.
Therefore throughout the spreadsheet I want images that are applicable to

the
10 pile group.

I don't mind if there is a seperate worksheet within the spreadheet where
all of the images are located.

But basically, I want the images to change based upon a calculated value.

Thanks in advance!

Jonathan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How do I have an image in a cell based upon a referenced value

How can I use images within the spreadsheet so I don't have to be computer or
directory specific?

I am comfortable with macros- so that solution would work well if I can pull
the images from a worksheet from within the spreadsheet.

Thanks!

Jonathan

"Tom Ogilvy" wrote:

use the change event to run code to insert your images. Turn on the macro
recorder while you insert and position the image manually to get the code.

See Chip Pearson's page on events if you are not familiar with them
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Jonathan Neubauer" <Jonathan wrote in
message ...
What I want to do is have an image of a particular schematic inserted in

the
worksheet based upon a referenced cell.

For instance, if A1 equals 10, that would mean I have a 10 pile group.
Therefore throughout the spreadsheet I want images that are applicable to

the
10 pile group.

I don't mind if there is a seperate worksheet within the spreadheet where
all of the images are located.

But basically, I want the images to change based upon a calculated value.

Thanks in advance!

Jonathan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How do I have an image in a cell based upon a referenced value

I can do it with the copy/paste routine- thanks for the suggestion!

Jonathan

"Jonathan Neubauer" wrote:

How can I use images within the spreadsheet so I don't have to be computer or
directory specific?

I am comfortable with macros- so that solution would work well if I can pull
the images from a worksheet from within the spreadsheet.

Thanks!

Jonathan

"Tom Ogilvy" wrote:

use the change event to run code to insert your images. Turn on the macro
recorder while you insert and position the image manually to get the code.

See Chip Pearson's page on events if you are not familiar with them
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Jonathan Neubauer" <Jonathan wrote in
message ...
What I want to do is have an image of a particular schematic inserted in

the
worksheet based upon a referenced cell.

For instance, if A1 equals 10, that would mean I have a 10 pile group.
Therefore throughout the spreadsheet I want images that are applicable to

the
10 pile group.

I don't mind if there is a seperate worksheet within the spreadheet where
all of the images are located.

But basically, I want the images to change based upon a calculated value.

Thanks in advance!

Jonathan




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How do I have an image in a cell based upon a referenced value?

Here is the code I came up with if anyone else is looking for a similar
solution:

Dim ValueA As Integer

Sheets("Practice").Select
ValueA = Range("B6").Value


If ValueA = 1 Then

Sheets("Practice").Select
ActiveSheet.Shapes("Image_Cell_01").Select
Selection.Delete
Sheets("Images").Select
ActiveSheet.Shapes("Image_PC_01").Select
Selection.Copy
Sheets("Practice").Select
Range("C11").Select
ActiveSheet.Paste
Sheets("Practice").Select
ActiveSheet.Shapes("Image_PC_01").Select
Selection.Name = "Image_Cell_01"

ElseIf ValueA = 2 Then

Sheets("Practice").Select
ActiveSheet.Shapes("Image_Cell_01").Select
Selection.Delete
Sheets("Images").Select
ActiveSheet.Shapes("Image_PC_02").Select
Selection.Copy
Sheets("Practice").Select
Range("C11").Select
ActiveSheet.Paste
Sheets("Practice").Select
ActiveSheet.Shapes("Image_PC_02").Select
Selection.Name = "Image_Cell_01"

End If



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
Return Results of a cell based on cell referenced in a cell Drew Excel Worksheet Functions 4 September 3rd 09 06:19 PM
insert an image based on a cell value brig239 New Users to Excel 1 June 3rd 09 07:10 PM
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
Highlight Cell Based Upon Referenced Cell Data Tee Excel Worksheet Functions 3 September 12th 08 05:26 PM
How can I change an image based on cell value Adriaan vd Linde Excel Programming 1 July 24th 03 04:25 PM


All times are GMT +1. The time now is 04:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"