Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Picture Problems

I would love to do what you asked, but I think its better because you have
300 items to do that you learn do to it yourself. I'm not trying to brush
youoff.

You can't change the name of the pcitures. I tried early today. You have
to figure out which picture is associte with each name. I would take the 8
pictures and put them on the main page. Then run the code below. Figure out
which picture is associated with each number.

When you copy each picture onto the main sheet copy the one you want as 1
first, then 2 second, etc.

If we still have problems I will send you my e-mail address. I don't think
it is going to be hard.

Sub visablepicture()

Picturenumber = Val(InputBox("enter Picture Number: "))
For i = 1 To 8
If Picturenumber = i Then
Worksheets("Sheet1"). _
Shapes("Picture " & i).Visible = True
Else
Worksheets("Sheet1"). _
Shapes("Picture " & i).Visible = False
End If
Next i

End Sub



"Confused at Work" wrote:

Joel, I need more help with this. Could I send you the file? Im not sure
how to put names on the pictures, and I have 300 invoice sheets to do it on
too. Thanks.

"Joel" wrote:

I would do something a little different than what you are trying. Put all
the pictures on the main worksheet. Then make them visible of invisible.
Try code like this

Sub visablepicture()

Picturenumber = Val(InputBox("enter Picture Number: "))
For i = 1 To 8
If Picturenumber = i Then
Worksheets("Sheet1"). _
Shapes("Picture " & i).Visible = True
Else
Worksheets("Sheet1"). _
Shapes("Picture " & i).Visible = False
End If
Next i

End Sub


"Confused at Work" wrote:

Joel, in english please. SOrry. I have multiple logos, and they are
numbered 1 to 8. If they choose #1 then I type it in at the top it brings up
their name and I want it to bring up their logo at the bottom which is on a
nother worksheet. But I dont know how to get that logo to come up
automatically.


"Joel" wrote:

I always have problems with getting picture names as long as other shapes.
Try using this code to help you get the names of the obbjecs

Sub test()
For Each myshape In Worksheets("Sheet1").Shapes
MsgBox (myshape.Name)
Next myshape

End Sub

Then you'll know the names of the pictures.

"Confused at Work" wrote:

Just wondering I have multiple worksheets and on the main worksheet screen is
my invoice page, all the rest is programming related. Now depeneding on the
customer I want them to be able to click on a number and then their logo come
onto the page at the bottom of the screen. I have the logos set on a
different page, but just can convert them over to the main page. I think it
has something to do with the cells, I cant make my picture into one cell, its
always picture #1 or picture #2. Any suggestions or help with this one?

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
Connect a number to a picture bank and import that picture to exce Dennis Hedo Excel Discussion (Misc queries) 1 March 22nd 10 02:17 PM
Picture problems in custom header DDawson Excel Discussion (Misc queries) 0 March 11th 08 12:10 PM
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
insert a picture in to a comment but picture not save on hard disk Pablo Excel Discussion (Misc queries) 0 February 21st 07 03:48 PM
get a picture width and height without inserting the picture Dorothy Excel Programming 1 January 13th 05 05:06 AM


All times are GMT +1. The time now is 08:18 PM.

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"