Setting Macros - Possible To Put Image In Comment Based On Value In Cell

Nov 12, 2012

Is it possible to put image in comment base on the value in cell ?

For example

c1 c2 c3
R1 A
R2 B
R3 C

I can put A.jpg to C1R1"A", B.jpg to C2R2 "B", and C.jpg to C3R3

Or irregular arrangement ??

View 9 Replies


ADVERTISEMENT

Add Image To Cell Comment Box

Aug 14, 2009

I have a set of data with text in one cell and images in a cell adjacent the text to illustrate the text. I am trying to figure out how to add a comment to the cell containing the text and take the image in the adjacent cell and put it in the comment.

Is there a way to do this, or do I have to write a macro that saves the images as their own files and then insert the image files into the comment?

View 9 Replies View Related

Setting Up Pics Within Cell But Not As Comment?

Aug 7, 2014

being able to setup pics within the cell without setting up the pics in comments. I need the pics to be visible as day so when I save them in pdf form they can be seen by my clients without them having to click and go reference other files. Also if this is possible, is their a way I can load the pics using no more than 3 steps to get the sheet to start loading the pics, I am needing to minimize some steps just for saving time. I plan on using this setup for inspections and can't spend a lot of time changing the pic size and opening different files.

View 3 Replies View Related

Setting Individual Cell Comment Show / Hide Command?

Oct 12, 2013

I was wondering, more specifically, if I could on say a single click on the cell, keep comment open until clicked outside of the cell comment. Currently set up at the moment to show comment on mouseover of the cell. And I would like to keep comment open if i choose to click on the cell.

View 1 Replies View Related

Display Image Based On Image Name In Cell

Sep 4, 2007

Is there a way to have image box display an image with a name matching data from a cell? example: if I type "hello" in cell a1, Image box will load image named "hello". And display new images by changing the name in cell a1. Note: the images will be located in a permanent folder.

View 3 Replies View Related

VBA For Inserting An Image Into The Comment Box Via User Form

Jul 13, 2009

is it possible to allow a user to insert an image into a comment box through a user form. For example-

User enters Part # into form - then in a separate form field - uploads an image from his/her hard drive. On submit the part number is populated into A1(or wherever) and comment box is also generated for A1 which contains said image.

View 4 Replies View Related

Macros VERY Slow After Setting The PrintArea

Jul 3, 2008

i have the following problem: as a Workbook_BeforePrint statement i wrote a macro in which i recalculate the print area of 2 tables in Sheet1 and Sheet2. The table autogenerates new lines through another macro and therefore i need to set the area because i cannot know from the start how big will be the table (how many lines it will have). I know only how many columns it will have (from cell B2 (or Sheet1.Cells(2,2)) to column 13, on Sheet1 and 5 on Sheet2).

As i said, before Print (or PrintPreview) excel triggers this Workbook_BeforePrint macro. In this macro i count the lines on a column which is the Current Nr. column, until cell is empty (=""). The macro works perfect. Here is the macro:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
setprint
End Sub

Sub setprint() .....

View 9 Replies View Related

Insert A Comment Based On The Value Of A Cell

Jan 18, 2010

I have data validation and conditional formatting set for my sheets. However, I cannot figure out something.

I want a "comment" box (just as if I would click on "add comment") to pop up automatically if the user enters a certain value in a cell.

For example, if cell C4="1" then no further action is required. If cell C4=anything other than "1", then the user would be required to enter a comment. I would also like the comment to autopopulate with the users login id.

I will attach the book I am working on for reference, but I do not have any code written for this as I could not figure out where to start.

View 5 Replies View Related

Decision Based On Cell Comment

May 22, 2007

I would like to execute code based on the cell comment. If cell comment = "something" then do something. Is there a way to do this? Also is there a way to add aditional comment to the cell if one already exists? I am currently using this to write the comment

Selection.ClearComments
Selection.AddComment
Selection.Comment.Text Text:="New comment"

Obviously this clears the previous comment, I would like to just add more to it and retain the original comment as well.

View 2 Replies View Related

Autoupdate Cell Comment Based On Cell Input / Dynamic Cell Comments?

Aug 16, 2013

I'm wondering if it is at all possible to have a cell comment automatically update depending on what data is input in the cell (via user input, VLOOKUP, etc.)?

For example, if cell A1 contains the text "CHARLES" with a comment saying "Employee of the Month", and is then subsequently updated with the new text "JOHN" (again, via direct input, a VLOOKUP, data validation, etc.) is there a way to have the comment automatically update to say something else, such as "Team Lead" for example?

I've considered using VBA to accomplish my goal, but am unsure how to compose an effective code to do so. I've also considered perhaps creating a named table filled with all the different comment possibilities I would like to have used in this cell and then inputting a formula in either cell A1, or the comment contained therein, that would then call the corresponding text from that table based on the data in cell A1. Honestly, I'm not sure that what I'm trying to do is even possible;

View 4 Replies View Related

Setting Colour Of Cell Based On Content

May 3, 2007

I have inherited a spreadsheet from someone else that rather cleverly (in my humble opinion) sets the colour dependant on the contents. ie negative value is red, zero is amber and positive is green.

i like the idea and would like to use it on a spreadsheet of my own, but have tried to find out how it is done and can't!

View 9 Replies View Related

Display An Image Based On A Cell's Value?

Jan 12, 2010

I have two bitmap images, and I would like to show only one image at a time, based on the content of another cell's pull-down list. If the user selects "AIR", then display the AIR image. If the user selects "SERVO", then display the SERVO image.

View 2 Replies View Related

Load Image Based On Cell SKU

Feb 3, 2014

Running a macro that would insert product images in to a sheet based on a SKU that is in a different column. My sheet has an image in Cell A3 based on the SKU code that is inputted in to D3. All of my images are stored in F:Images I will have about 500 SKU's that all need images and will be named the same as the SKU I enter in to Column D.

Can this be done via a VBA script?

View 2 Replies View Related

HOW To Load Image Based On Cell Value

Oct 10, 2007

Step1: Type the picture name that is store somewhere in the computer (C:/MyDocument/Pics)
Step2: After typing the pic name into the cell, the pic that is the same name as the cell text will be display (Type "apple" and the other cell load out the apple pic that is stored)

View 9 Replies View Related

Load Image Based On Cell Value

Aug 21, 2006

How do I load an image based on the cellref value already in the sheet? I have pictures in a worksheet labelled picture 1,picture 2. If Cell A1 = 1 I want it have picture 1 loaded in that cell. if cell a2 = 2 load picture 2 in that cell. also if changes to =2 replace picture1 in a1 with picture2.

View 2 Replies View Related

Show Image Based On Cell Value

Jul 2, 2007

Question: I would like to have two pictures (one in cell B2, the other in cells D1-C10 to I10) display based on a data validation list that I have in A1. So, for example, if you click U.S.A., two pictures for U.S.A. show up; if you scroll down to Canada, two pictures show up. If you're interested, I have included the history of what I have tried in the past.

History of what I have tried:

I used this code before [url] , but that makes all pictures but 1 invisible and I need two.

So then I used this one,

Sub HelloWorld()
'Message box to say hello
MsgBox " Sub GetPicture()
Dim oPic As Picture, imgFlag As Range, imgMap As Range

' Loop Flag and Map images
'imgFlag = Worksheets("Image").Range("B1")
'imgMap = Worksheets("Image").Range("D1")

For Each oPic In Worksheets("Summary").Pictures
If (oPic.Name = Worksheets("Image").Range("B1").Text) Then
oPic.Visible = True
oPic.Top = Worksheets("Image").Range("B1").Top
oPic.Left = Worksheets("Image").Range("B1").Left
ElseIf (oPic.Name = Worksheets("Image").Range("D1").Text) Then
oPic.Visible = True
oPic.Top = Worksheets("Image").Range("D1").Top
oPic.Left = Worksheets("Image").Range("D1").Left
Else
oPic.Visible = False
End If
Next oPic
End Sub"

View 8 Replies View Related

Conditional Formatting Based On Internal Cell Comment

Feb 19, 2013

Can I set the conditional formatting to highlight those cells, which contain internal (not pop-up) cell comment?

For example =10+N("free text comment"). The displayed value is 10, and I need this cell to be highlighted automatically.

The sheet has over 200 columns, so functions based on other cell values are not applicable.

View 8 Replies View Related

Setting Chart Marker Based On Cell Format

Apr 12, 2006

I have a dynamic chart which I would like to show markers in a SeriesCollection anywhere the backcolor of any of the corresponding source cells is ColorIndex = 36; otherwise no marker is shown. Something along the lines of:

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred

when copy/pasting, but IS if the keyword uses "quotes".
With Sheets("Chart").ChartObjects(1).Chart.SeriesCollection(1)
For i = 1 To UBound(.Values)
If "something here to check if .Interior.ColorIndex = 36" Then
.Points(i).MarkerStyle = xlMarkerStyleCircle
Else
.Points(i).MarkerStyle = xlMarkerStyleNone
End If
Next i
End With

View 9 Replies View Related

Hide Or Show An Image Based On A Cell Value

Mar 31, 2009

I have a spreadsheet with two bitmap images inserted into it. In cell E2, I will enter a number, either a 1 or a 2. if I enter a 1, I want only the first image to be visible. If I enter a 2, I only want the second image to be visible. Is there a way to accomplish this (hopefully without the need for macros)? I've attached a spreadsheet as an example of what I'm trying to do. Also, note that I'd like the images to be stacked on top of each other so that they show up in the same place regardless of wether there's a 1 or a 2 in cell E5

View 13 Replies View Related

Display Image Based On Contents Of Cell?

Feb 25, 2014

I have found Displaying an image based on text contained within a cell. which appears to be a very similar question, but no steps to follow.

Basically I have a folder with around 300 images in it, each is called ProductId number.jpg
eg Z99S1234567.jpg

In my sheet I am using the same ProductId number and would like to display the product image on the sheet. I have A1:D19 as spare space Lookig at the info I have found the image will have to go into a cell, so can I break all the rules and merge cells to fit the image in, or do I need to make a single cell big enough or can I use VBA to import the image somehow to a specific place on the sheet.

There will only ever be one looked up image on the screen at a time.

View 1 Replies View Related

Display Image Based On Cell Content

Aug 17, 2007

I'm trying to display a different image based on the contents of a cell. For example if cell A1 = "Gerrard" I would then like to display a picture of Steven Gerarrd. Is this possible? If so can anyone give me a steer in how I might acheive this.

View 3 Replies View Related

Linking Image To Cell Value And Display Selected Image In New Sheet?

Mar 18, 2014

I need to link an image to a cell value and display the selected image in a new sheet of the same excel. I am attaching samplefile for easy reference. The requirement is, from the workout sheet when I select from drop down list, then the corresponding cell value appears in Parameter sheet in C9 cell.

There are four images copied in Parameter excel. The given image has to be selected and linked to the C9 cell value. Based on the selection that particular image should be shown on Sample Picture sheet. Here based on the selection only the image should reflect here.

View 12 Replies View Related

Rename Object (Image) Based Cell Values

Jul 9, 2014

Posted this on another forum. [URL] .....

View 1 Replies View Related

VBA To Rotate Image Incrementally Based On Cell Values

Feb 20, 2013

I'm looking for vba code to use that will incrementally rotate an image based on values entered within a cell of an Excel spreadsheet.

I have two graphics, one is the face of a dial and the other is the pointer very much like a speedometer. I can achieve the desired outcome using two excel charts, one overlaid on top of the other, but, this doesn't give me the visual effect I'm looking for.

I'm using the face of the semicircle dial as the background image and I have a separate image for the pointer. When a value between 1 and 100 is entered in cell O3 i would like the pointer to rotate to that position on the dial. The pointer is to have a fixed position and arc left to right where the value of 1 is left-most and horizontally aligned, and for the value 100 the pointer would point in the opposite direction.

View 14 Replies View Related

Rename Object (image) Based On Cell Values

Jul 9, 2014

I'm looking for a way to rename an object (which is an image) based cell values. Not to sure where to start.

View 4 Replies View Related

Auto Generate A Comment Box Based On A Cell Value That Has Variable Reference Cells

Jan 30, 2010

I have been given the following code and it works great. I now need to adapt it to the following scenario: In the attached sheet, the user has to select either, "Suburban" or "Squad" in row 5. If the user selects, "Suburban" I need this script to compare the values they enter in a given row to the value in column "B".
If the user selects, "Squad" I need this script to compare the values they enter in a given row to the value in column "C".

Look at row 48, for example. If the user enters, "Suburban" in cell D5 then the value they enter in cell D48 should equal "1". If it does not equal "1" then it should proceed with the adding of a comment. Conversely, if the user enters, "Squad" in cell D5 then the value the enter in cell D48 should equal "2". If it does not equal "2" then it should proceed with the adding of a comment.

View 5 Replies View Related

How To Automatically Identify Image Name And Place In Cell Next To Image

Jan 22, 2014

I am looking for a way to take the picture name associated with an image ie: (picture 571) and place that picture name in the cell next to the image.

I can see the picture name - it registers in the top left box that usually indicates the cell the cursor is on... and I could manually type that name next to each image.

However my spreadsheet has several thousand rows- each with several columns of information and an image..

I am looking for a way "formula?" to automatically read the image in cell J4 and populate cell K4 with the image name... and so on.

The reason for my request... is I am importing products into a web based shopping cart... to do so I have to export the products to a csv and import that csv into the shopping cart. The process of exporting to a csv- strips away all the images and leaves just data.

I found that I can save the document as an html and that process creates a folder with all the images- saved as (picture 571.jpg) if the resulting csv had the image name... the shopping cart would then look for that image name in my image file and it would populate into the shopping cart appropriately.

This seemed on it's face like a really simple thing to do, I have plenty experience with excel & I thought I'd be able to make cell k4= j4 and tada it would glean the image name & I could simply copy that formula all the way down the sheet & it would be done... but I just cant find the magic button that freely gives up the image name...

View 5 Replies View Related

Embed Image In Cell :: HTTPS URL To An Image

Aug 8, 2006

I have a dataset that includes the path and optionally an HTTPS URL to an image. Is it possible to embed this image in a cell?

Short of that what might be some other options?

View 11 Replies View Related

Run Macros Based Cell Value

Dec 12, 2007

I am trying to create a macro based on value in a cell. For example if J2 is greater than 1 then run macro A. The code I have is:

If j2 > 1 then
Call MacroA


The file imported as a text tab deliminated file and I believe that even though J2 might be 10.05, it does show up in the formula bar as just 10.05 not =10.05. I don't if this makes a difference. The J2 cell could either bland or values ranging from 1 to 100. If it is blank I want to run a different macro.

View 2 Replies View Related

Open A Workbook And Run 1 Of 4 Macros Based On 3 Cell Values

Jul 30, 2009

I'd like to automatically run 1 of 4 macros depending on some criteria. Every workbook created has, unfortunately, the same worksheet name, so that leaves the only differences between the 4 possible loaded workbooks in the cells area and even those can be similiar in many ways. But....I found some criteria to separate all 4 workbooks...Here they are...

run macro 1 if this

1. Worksheet name says "Screen"
2. Cell H1 has the word "Lead"


run macro 2 if this

1. Worksheet name says "Screen"
2. Cell B1 has the word "records" somewhere in the cell
3. Cell H1 has the word "Lead"


run macro 3 if this

1. Worksheet name says "Screen"
2. Cell B1 has the word "records" somewhere in the cell
3. Cell N2 has the word "Delivered"

run macro 4 if this

1. Worksheet name says "Screen"
2. Cell B1 has the word "records" somewhere in the cell
3. Cell N2 has the word "Bevel"

I don't know if this can be done, but if so, that would be fantastic! I'm thinking that the macro would have to be "global" and in the user's personal workbook?

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved