I have recorded a macro for inserting, sizing and positioning a product photo into a report. The photo file is in a directory containing many files. Filenames are alpha numeric codes with a .jpg extensions. I wish to be able to enter a different code into a spreadsheet cell which will be named and let the macro insert the proper photo from the files in the subdirectory.
Here is the code which was recorded and which brings up the photo for file "HGGA134.jpg ".
Range("B10").Select
ActiveSheet.Pictures.Insert( _
"C:Documents and SettingsRichard WrightDesktopNUEVOProduct PhotosHGGA134.jpg" _
).Select
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 195#
Selection.ShapeRange.Width = 180#
Selection.ShapeRange.Rotation = 0#
End Sub
I need a way to change the "HGGA134" part of the code by having it reference a named cell in the report.
I have done the above where when I select a picture name from a drop down list it displays the relevant picture in another cell by using the IF function in the named formula
My question is why cant I use VLOOKUP instead of IF in the named formula. When I use it it comes with an error.
i have saved some pictures in my excel sheet. in the next sheet i want that when i write the picture name the picture will appear as vlookup helps in the getting text and nos. can i do this with pictures or i tried to get to much from excel.
In Excel 2010, is there any way to paste a picture into a small picture/diagram box, and upon double clicking the picture it would explode to a larger size? And I guess double clicking it again would make it return to its original (smaller) size. I would be pasting several pictures into several different picture/diagram boxes and would need this to be a relative reference so that upon selection it explodes the appropriate picture?
I want to have a sample file in excel which store picture of student in comment, I did this, but when I want to insert picture the file dialog appears, and if I click cancel, then there is an error, why? If some one optimise the code it would be very nice
I am putting together a price list in excel and using images and hyperlinks to jazz it up a bit - what I am finding is that if I insert a 25KB GIF image, the excel file grows in size by over 100KB
why is this disproportionate growth happening and is there a way around it - I dont want my Price List growing too large but need the images....?
i need to have a way to link a small picture/thumbnail to a cell. so that there is a way to preveiw it. Ideally like what happens with the comments where you hover over the cell and the comment would pop up. or failing that may be a cell linking to the image.
I have a workbook that has 32 pictures identically formatted. I used info from McGimpsey website for displaying a picture base on a cell value which works fine but I need that same picture to display in a few other cells. Is this possible?
I have two images that have a name on each sheet for reference. One is a thumbs up image, one is a thumbs down. They are both named tu_image and td_image respectively. I want to show the thumbs up image if a particular cell has a value of 10 and show the thumbs down image if that cell's value is < 10.
This check and display needs to be done about 20 times on different sheets and with different values. (i.e. Thumbs down should only show when the value is < 20, instead of 10.) Ideally this should take place when the workbook updates with new data. Is this possible?
I have found a few solutions here in the message boards but I don't see one that totally matches what I need. Basically I want it to look up the clients logos. We only have a few clients but when sending the report to a client we don't want them to be able to see or find who our other clients are or their logos. So I need it to display a picture based on a value but to also have the pictures on a seperate sheet that I can delete before distributing.
A variation of this would work but this stores all the pics on the report sheet and just hides the non active ones. [url]
I have attached a simplified version of the xls I am using. On the attached xls there are two tabs. The first tab (BUYS) has linked pictures of cells on the second tab (Warehousing).
I would like some code which would display the pictures only when the corresponding cells in Column F have a number in it. (This number could be anything)
e.g. If cell F4 has a number in it show Picture 1 If cells F4 and F5 have a number in them show Picture 1 and 2
My full xls (not attached) has another tab called SELLS. These two tabs (BUYS and SELLS) have 15 pictures each (1 for each row 4:18).
Ideally an exception would be written into the code so that if the xls was named "yymmdd Asian Executions" or "yymmdd Europe Executions" none of the pictures would show up.
I hope I have been clear but it's very difficult to be objective so please let me know if you need any more information.
I am looking for a way to insert a picture into a cell BUT the picture should not float. It should change its size whenever the cells size changes - as if it was inserted into a rectangle drawn from the "PAINT" Bar. An example (but it floats) can be seen in the attached picture/
i need to have a way to link a small picture/thumbnail to a cell. so that there is a way to preveiw it. Idealy like what happens with the comments where you hover over the cell and the comment would pop up. or failing that mabe a cell linking to the image.
I'm trying to do something with pictures that have been inserted into cell comments. I'd like to be able to copy a picture that had been inserted into a cell comment, and save as .jpg with file name and file location designated by other cells in the spreadsheet. For example A1 contains "monkey" and has a picture of a monkey inserted into a comment on the same cell. B1 contains "zoo". I'd like to copy the picture from A1's comment and save as monkey.jpg to location c:zoo. Is this kind of thing possible in VBA?
I have a number of pictures on sheet 1 that display names from cells in sheet 2
E.g. Cell B1 in Sheet 2 has the value "Bob Jones" Cell B2 in Sheet 2 has the value "Ian Jones"
In sheet 1 Picture1 has the formula =Sheet2!$B$1 so that the picture displays "Bob Jones" Picture2 has the formula =Sheet2!$B$2 so that the picture displays "Ian Jones"
I have about 30 pictures displaying names in this way, but I want the name of the chosen picture to also appear in cell A1.
E.g. On sheet 1 user clicks on Picture 1 (Bob Jones), the name "Bob Jones" appeas in Cell A1 User clicks on Picture 2 (Ian Jones), the name "Ian Jones" appeas in Cell A1
Sheet1 has a list that changes based upon input in Sheet2 So, I have reference pictures on Sheet2 that I would like to show on Sheet1 under the corresponding value.
Explanation: on Sheet two a value is assigned (in column B) to each category (Column A) and then it is ranked (Column C)
Sheet 1 lists the categories in rank order. I want pics to show under each category.
I saw some articles online, but have been unable to make it work.
I need to input signatures into cells automatically when a date is inputed into an adjecent cell. I have a scanned copy of a signature but because when u insert image it doesn't put it into a cell I can't just put =a1 as a1 is still empty.
Trying to paste image/picture jpg into cell. Don't know enough basic to use earlier found code. Can't just image upload because image floats- not working in cell.
I have a button macro to import pictures to size fit inside a merged cell. I've noticed that the pictures lay over the border and i can't find a way to have it fit inside the border in my code.
I am making a spreadsheet which would have the record of the audit that i am doing on my patients. Along with other details i want to give link of the routine followups of their disease picture in their specific spreadsheet cell. I have searched the internet about it where i have come to know about hyperlinking. However, my concern about hyperlinking is that i want the spreadsheet with pictures to be portable to other PCs which wouldn't be possible with hyperlinking. Also including the pictures in the spreadsheet would be very troublesome as the size would enormously increase once the data continues to grow.I want to include photos in column L, R, V, Z & AD.
I found this code on the web that I wanted to use to fit a picture into a cell. However, it sizes the picture proportionaly, and not to the cell size. How to get it to fit to the cell size.
(Also, how I can properly post code in a message. I read the user guide to the forum and it mentioned BB Tags, but I couldn't see what I need to do).
Public Sub FitPic() On Error GoTo NOT_SHAPE Dim PicWtoHRatio As Single Dim CellWtoHRatio As Single With Selection PicWtoHRatio = .Width / .Height
I'm looking for a way to insert / display images in a worksheet depending on the value in a cell. The following link is able to do what I need, but it's very limited - i.e. all images must be present in the worksheet first and only the one require is visible:
McGimpsey & Associates : Excel : Display picture based on cell value
I'd prefer to store the images in a normal folder in windows (for a large library of images) and have Excel retrieve the image somehow.
I am inserting a picture into a cell and resizing it to fit the cell. The problem I am having is that the cell covers the border at the top of the cell. Is there a way I can offset the picture in the cell so it does not cover the border?
How I can get a picture to pop up when a certain answer is selected in a certain cell, or when a certain answer is keyed in to a cell. Another portion to this question is that we know how to get a message to pop up in a dialog box when a certain piece of information is typed in to a box, but we don't know how to get graphics into those dialog boxes.