A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using formulae to display pictures....



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2004, 03:45 PM
matt_123
external usenet poster
 
Posts: n/a
Default Using formulae to display pictures....

Hopefully there is somebody that can help me with this predicament. I
regularly compile quizzes on excel which get sent out & are now viewed
as far afield as the US (im in the UK), but for one particular quiz I
would like to set up I am having trouble with achieving something.
What I am after is a way in which a cell(s) can show part of a picture
(eg part of a face) for the user to try & identify, but then when they
enter the correct answer, the picture changes to full size. Whether
this involves resizing or replacing the picture, formulae, conditional
formating etc I am not bothered. I have racked my mind trying
everything I can think of , but have hit a very large wall
which I cant get past!

Hopefully somebody out there can help!

Cheers, Matt


---
Message posted from http://www.ExcelForum.com/

  #2  
Old July 2nd, 2004, 04:45 PM
jeff
external usenet poster
 
Posts: n/a
Default Using formulae to display pictures....

Hi,

Here is a macro which I am calling from a button -
which switches between 3 different pictures. Adjust
down to 2; load both: the partial and then the final
and switch.

also including a HidePix macro (I use this in auto_open)
these aren't elequent code, but they work for me.

good luck
jeff

Public Sub HidePix()
Dim nobj As Integer
Dim pic(5) As Variant
nobj = Application.ActiveSheet.Pictures.Count
For J = 1 To nobj
If Left(ActiveSheet.Pictures(J).Name, 7) = "Picture" Then
picnum = picnum + 1
pic(picnum) = J
End If
Next J
For J = 1 To picnum
ActiveSheet.Pictures(pic(J)).Visible = False
Next J
End Sub

Public Sub switchPix()
Dim nobj As Integer
Dim pic(5) As Variant
nobj = Application.ActiveSheet.Pictures.Count
For J = 1 To nobj
If Left(ActiveSheet.Pictures(J).Name, 7) = "Picture" Then
picnum = picnum + 1
pic(picnum) = J
End If
Next J
If ActiveSheet.Pictures(pic(1)).Visible = True Then
ActiveSheet.Pictures(pic(1)).Visible = False
ActiveSheet.Pictures(pic(2)).Visible = True
ActiveSheet.Pictures(pic(3)).Visible = False
Else
If ActiveSheet.Pictures(pic(2)).Visible = True Then
ActiveSheet.Pictures(pic(2)).Visible = False
ActiveSheet.Pictures(pic(1)).Visible = False
ActiveSheet.Pictures(pic(3)).Visible = True
Else
ActiveSheet.Pictures(pic(3)).Visible = False
ActiveSheet.Pictures(pic(2)).Visible = False
ActiveSheet.Pictures(pic(1)).Visible = True
End If
End If
End Sub
-----Original Message-----
Hopefully there is somebody that can help me with this

predicament. I
regularly compile quizzes on excel which get sent out &

are now viewed
as far afield as the US (im in the UK), but for one

particular quiz I
would like to set up I am having trouble with achieving

something.
What I am after is a way in which a cell(s) can show

part of a picture
(eg part of a face) for the user to try & identify, but

then when they
enter the correct answer, the picture changes to full

size. Whether
this involves resizing or replacing the picture,

formulae, conditional
formating etc I am not bothered. I have racked my mind

trying
everything I can think of , but have hit a

very large wall
which I cant get past!

Hopefully somebody out there can help!

Cheers, Matt


---
Message posted from http://www.ExcelForum.com/

.

  #3  
Old July 3rd, 2004, 10:32 PM
AlfD
external usenet poster
 
Posts: n/a
Default Using formulae to display pictures....

Hi!

The simple way is to have 2 pictures: one is partial; the other is
whole.

Replace the partial with the whole to "reveal" the hidden bits.

Alf


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Pictures From a Hyperlink KB Setting Up & Running Reports 0 June 23rd, 2004 09:26 AM
Sending Pictures Bill Moses Outlook Express 1 June 3rd, 2004 10:26 PM
Mutiple line display in cells that contain formulae Ashok Kumar Worksheet Functions 1 May 3rd, 2004 08:57 AM
Display formulae Sheryl Worksheet Functions 1 October 5th, 2003 12:45 PM
Undersize window display on monitor FRED Worksheet Functions 0 September 26th, 2003 07:05 PM


All times are GMT +1. The time now is 04:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.