Image As Custom Xy Chart Marker

Oct 19, 2007

I'm trying to use an image as a custom marker on an XY scatter chart. The jpg image is embedded on a separate worksheet and when I copy and paste it via code it seems to be arbitrarily resized. I've also tried to resize the embedded image and set the marker size but it always appears about 3 times the size of the original image. See CASE -0.5 below.

Set seriespoint = chtBaseArea.SeriesCollection(" Events").Points

For i = 1 To rngCombPointsY.Rows.Count
With seriespoint(i)
.HasDataLabel = True
.ApplyDataLabels Type:=xlDataLabelsShowLabel
.DataLabel.Text = rngCombPoints. Cells(i, 1).Value
.DataLabel.Position = xlLabelPositionAbove
.DataLabel.Font.Bold = True
.DataLabel.Font.Size = 8

Select Case rngVehicleY.Cells(i, 1).Value

Case -0.5
Set shpTemp = wrkshtGraphics.Shapes("Soyuz_Small_Icon")
shpTemp.Copy
.Paste
.MarkerSize = 10

View 3 Replies


ADVERTISEMENT

Excel 2010 :: Add Pie Chart Into Data Point Marker On Line Chart

Nov 27, 2011

I am looking for a creative way to display a pie chart within a data point marker of a line chart.

My database has 3 value columns, Type1, Type2 and the Total (Type1 + Type2)
these are recorded per day (Date, in Column A)

I have a line chart that displays the total by date, but I want to find a way to display the percentage split of a particular day by type.

I was thinking to load the chart image into the Data point marker, but i don't think that is the best way as the data is updated daily and I would have to do it each day for a few line charts.

The other way I was thinking about was to have a generic Pie chat in the Line chart (Maybe in a corner) and the pie would update depending on way date series was selected or Mouseover'd)

the way that I am approaching it at the movement (Not the best way and by far not the coolest way. Is to have a list of all the dates in a column next to the Line chart and using some VBA, what ever date is selected in the column the pie chart displays the corresponding data. But eh challenge is that when there is alot of dates, I am going to be scrolling up and down.

I am using Excel 2010, but I cant not use the slicer's as the other users do not have 2010, they have 2007.

View 1 Replies View Related

Bar Chart With Marker

Feb 16, 2007

to create a chart which shows a current value in relation to it's annual high and annual low. I've created a bar chart and added a series with a value of 100. The next series I added is the value of the marker I would like to ride along the bar.

My question is how do I change the marker value series from a bar to just a marker? I would like the chart to look like this (except a bar, not a line):
__________

View 9 Replies View Related

Adding A Coloured Marker On Chart Y Axis.

Aug 7, 2009

I have a simple Excel 2007 column chart which has names listed along the y axis for each column. Associated with each name in a small table is a colour reference. Is it possible to add a small marker (say a triangle or something) that aligns with each column?

Or possibly (or in addition) colour each column differently and in accordance with the assigned colours? I'm doing this with some vba code. but if someone can point out the general principle I should be able to work that in.

View 3 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

Custom Image To A Commandbarpopup

Oct 20, 2006

I have learnt how to create a custom menu in Excel.

{url}

I have also managed to assign a custom image to a CommandBarButton.

What I can't figure out is how I can assign a custom image to a CommandBarPopup. (Not on the topmost level, but one level below... in the ozgrid example, this would be "Next menu".) There is no FaceId or PasteFace for CommandBarPopups.

View 3 Replies View Related

Increase Size Of Image In Button (msocontrolbutton) Of Custom Toolbar

Aug 12, 2006

Image size appears in button(msocontrolbutton) of custom toolbar Excel 2000 is very small and blurred using below code. How I can increase size of image in button (msocontrolbutton) as well as brightness of image in custom toolbar? I am able to increase size of button using width and height property but image appears in center of button as 16X16. How to fit image to button(msocontrolbutton)?

Const cImgCommandBarID As String = "TMC Img Toolbar"
'Image code
Dim cbImgBar As CommandBar

Set cbImgBar = CommandBars.Add( Name:=cImgCommandBarID, Position:=msoBarTop)

'cbImgBar.context = 1000
Dim cbImage As CommandBarControl
Dim imgTool As Shape
Dim sFileName, ImgSheet
sFileName = ActiveWorkbook.Path & "ImagesABC.jpg".....................

View 2 Replies View Related

Export Chart As Image

Jan 8, 2013

I have used this code for over a year now and for some reason when i transfer it to a new workbook I am now getting a Run Error 91.

Code:

'Take ActiveChart and copy it as a GIF image to the same directory as the Workbook is in and name it with the Chart_Title with spaces replaced with underscores.

Dim chtCopyChart As Chart, sCurrentDirectory As String, sFileName As String Dim x As Integer, CellCharacter As String
Set chtCopyChart = ActiveChart
sCurrentDirectory = ActiveWorkbook.Path

[Code]...

The code is breaking on this line

Code:

chtCopyChart.Export Filename:=sFileName, FilterName:="GIF"

It almost seems to me like the code is not selecting the activechart, but, not entirely sure.

View 1 Replies View Related

Copying Chart With Image On Top Of It

Mar 22, 2007

I have a workbook where there is one chart per worksheet.

The chart may start in a different cell depending on the worksheet.

Each chart has an image on top of it (small image in the corner).

I already know how to copy the chart to the clipboard using a visual basic script. I am getting the first chart object on the worksheet. Is there some way to copy the image and the chart together to clipboard? I assume that I need to somehow group the chart and image together before copying to clipboard. The image will always be on top of the chart but may not always be in the same position on top of the chart.

The reason why it may be good to group the chart and image together is because I want to preserve the location of the image with respect to the chart.

How would I do this via a visual basic script?

View 9 Replies View Related

Save Chart As Image

Aug 13, 2008

Is it possible to save a diagram (chart) as an gif image with vba? Save as web files is not an option as it generates folders and other files aswell, nor no plugins/third party. Standard vba only.

View 3 Replies View Related

Export Chart As Image: Run-time Error 1004

Aug 18, 2006

I have a function that exports charts as PNG images, that is suddenly broken. The function is very basic: ActiveChart.Export fileName:=chartFileName, FilterName:="PNG"

Now I can guarantee that chartFileName contains a complete path, with filename and extension, so this is not the problem. I am getting the following error: Run-time error '1004': Method 'Export' of object '_Chart' failed. The only thing I can think of is that I had Office 2007 Beta installed alongside Office 2003, as mentioned by Andy in the following thread: Exporting Charts as GIF - Error. I have uninstalled Office 2007 Beta, and run the repair function of the Pffice 2003 install, but still I have this problem.

View 7 Replies View Related

Radar Chart - Custom Vertical Access Gridlines

May 14, 2014

Any way of displaying only certain vertical grid lines on a radar chart. I've added several blank rows of data to make the chart more of a circle but I don't want every one of the vertical lines to display. How to only show some of the vertical grid lines?

View 1 Replies View Related

Add/Remove Custom Control To Chart Drop-Down Menu

Sep 1, 2007

I want to add a control under Chart on the menu bar. This line of code errors with "Invalid Procedure Call or Argument"

With Application. CommandBars("Worksheet menu bar").Controls("Chart")

Change "Chart" to "File" or "Edit" or "Tools" and it's fine.

The Chart item only appears when a chart is selected, but it errors even when a chart on the worksheet is selected.

View 7 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

Excel 2010 :: How To Insert Path Of Image Rather Than Actual Image Itself

Nov 4, 2013

I need to find an easy way to locate an image on my server and upon selection rather than inserting the actual image I need to insert the image path. e.g. "s:imageshighresgreen1234.jpg"

View 3 Replies View Related

Dynamically Updating Image (ActiveX Image Control)

Oct 26, 2011

My workbook simply has multiple columns of data which will be summarized visually in a tag cloud (I have the tag cloud part taken care of already creating either a jpg or png, I simply have to change the extension within a batch file to change between picture formats)

I need to have the tag cloud image display and update depending on which column the user would like to summarize (for now I have simplified the issue by only having one of the data columns in my workbook, and will worry about the user selection of the data column to be summarized later).

My Main Question:

Focusing on the image display and updating now, whether it be an ActiveX Image Control or any other way. I've been playing around manually before I try and code it and I can not get either a jpg or png file to attach to the ActiveX control (both of which cause an Invalid Picture Message).

The file name can stay the same if need be and for now I think/assume that'd be easiest (I have my Tag cloud generator just replacing the previously existing image file of the same name).

Would ActiveX control be the way to go for this dynamically changing image?

View 9 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

Vary Data Marker Size By Value?

Apr 17, 2014

Is it possible to vary the size of data markers (eg spots) in a chart by their value?

View 2 Replies View Related

Automate Marker Options In Spreadsheet?

Jul 2, 2014

I have a scatter plot in which there are, for example, twenty plotted points representing one of three major categories.

We're using a red square, green triangle and blue circle to represent our categories on the graph. Going in to every plot point and manually changing each point so that it has the proper color and style is very time consuming.

Is there a way to designate in the spreadsheet (in its own column or something) that I always want the plot point to be represented in a certain way (like a red square) when graphed?

View 4 Replies View Related

How Do I Modify The Comment Marker/symbol

Nov 15, 2008

I would like to insert images (like a questionmark symbol) into a spreadsheet I'm working on, and then when the user hovers the mouse over the questionmark a "help-text" pops up. I've noticed that it doesn't seem to be that simple making a tooltip, however, is it possible to replace the small red triangle that is inserted into the sheet to indicate a comment with an image?

View 14 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

Is There A Way When Type Image Name In Textbox It Load Out That Image

Oct 9, 2007

is there a way to load an image out when u type the image name in the textfield.
Example when I type in my name it load my image out beside the name.

View 14 Replies View Related

Grabbing Name Of Displayed Image In Image Control

Jan 22, 2012

I have a number of image controls on a user form, each being loaded with an image from file.

Image1 being loaded with a picture of a bus image2 being loaded with a picture of a school

And so on

Now what I am trying to do is when that image is clicked the name of that image is passed to a textbox

So the action would be

1 image of bus loaded into image control1 , the name of that image being bus.jpg
2 image is clicked
3 the name bus.jpg appears in a text box

Here is what I have so far

Code:

Private Sub Image1_Click()
DataInput.TextBoxItem.Value = bus.jpg

DataInput.TextBoxItem.Value= Image1.Name - this does not work

End Sub

Which works but as you can see this is static, as I have supplied the value , were as I would like the clicking action to pick up the name of the jpeg being displayed

So expanding upon this if say image1 is loaded with say a picture of a car instead of a bus

LValue4 = "E:Car.jpg"

Image1.Picture = LoadPicture(LValue4)

Now when it is clicked the name of the image being displayed in image control1 would be Car.jpg

And it is this value I wish to transfer to a text box for now will do more with it later

In addition to this I am not sure if the best idea is to have a number of image controls and load each with an individual picture or have one image control and swap the picture by clicking a command button

View 3 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

Hiding The Active Cell Marker / Placeholder

May 24, 2006

I feel a bit silly asking this in the presence of so many obvious excel gurus: but here it goes. I've created some user forms, activex controls, etc. that do a series of complex calculations, supported by VBA and it's at the point where I want to roll it out. How do I hide / get rid of the active cell marker on the sheets? I've looked in the "options - view" section and have lucked out.

View 2 Replies View Related

Changing Marker Size In Charts For All Series At The Same Time?

Apr 24, 2014

I have a chart with 5 different series. Instead of editing each one, say the marker size, is there anyway I can change the marker size for all of the different series at the same time?

View 1 Replies View Related

Graphing - Macro Won't Change Marker Fill Colour

Jan 14, 2014

I'm recording a macro, so a line in my graph is a specific green. The marker fill won't retain the green, it always ends up blue. the lines and marker line is green. no matter what color I try the marker fill will always be blue. How to correct this?

View 6 Replies View Related

Excel 2010 :: Creating A Simple Line Marker Graph?

Mar 2, 2014

I'd like to create a simple graph exactly like the one on the picture, but for the life of mehow to do this on Excel 2010.This is the data I have:

Seperation First target Second target
0 59.00% 0.00%
2 64.28% 40.62%
4 62.68% 48.99%
6 60.81% 65.83%
8 61.82% 70.21%

View 6 Replies View Related

Add Image To Worksheet Image Control

Jan 14, 2008

I am trying to display an image ("image") on an image control ("Image1") placed in a worksheet ("Sheet1"). The problem is that I want this action to take place when I press a button in a user form. I am trying to use the following code, but it seems that VBA does not recognize the image control ("Image1") in the worksheet.

Private Sub cmdDisplayImage_Click()
Dim image As Variant
image = ThisWorkbook.Path & "sun.jpg"
Sheets("Sheet1").Activate
Image1.Picture = LoadPicture(image)
End Sub

View 2 Replies View Related

Excel VBA - Change Marker Styles For All Series Excluding Unmarked Lines

Aug 4, 2014

I have a macro that changes the marker style for all series in a scatter chart, chosen through an input box.

[Code].....

It works nicely, but I want it to exclude any series that do not have markers (i.e. lines used to indicate a reference value). I've tried an if-then statement after the With statement, but it will add markers to any line series:

[Code] ......

Basically, if the series has markers or line+markers, I want it to change the marker style, otherwise do nothing with the series.

View 5 Replies View Related







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