Phantom Chart Displays Until Worksheet Scrolled
Dec 28, 2006
I have an excel report containing eight or so worksheets. A user can make a number of selections with the report to change its context. E.g. to analyse different types of customers; high spend or low spend etc. Sales projections are then presented with several Excel Charts adapting to the user's preferences.
My problem occurs when the user makes a selection (they choose a ComboBox option.) This then triggers my code, which creates the data tables and graphs depending on their selection. The report is quite long so I have created two points in the same worksheet where the user can change the same customer selection option. (Basically, all I have done is create a second ComboBox which triggers the first). Again, this works perfectly causing no errors (other than the display error belowc)
However, when I change the second instance of the ComboBox a phantom copy of my chart is dumped on the current screen view. If I scroll off screen and then back again the phantom chart disappears. I need a quick solution to fix this bug until I have some more time to look at what's causing it. Therefore I simply want to add a line of code, which will scroll off screen and then return back to the same position. (Not very neat, but at least it will get rid of my duplicate chart). As I have screen updating turned off the user won't notice what is happening.
View 3 Replies
ADVERTISEMENT
Jan 9, 2008
I have a dynamic chart that allows the user to select the starting and ending dates for the data range by using a scroll bar.
The dates in the data table are input daily and are generally in sequential order, however there are gaps between dates (eg. 1/4/08, 1/7/08), such as would occur over a weekend or holiday period. The dates are used as labels for the X-axis.
The problem is the chart interpolates the dates in the "gap" and includes them on the X-axis and plots them as zero values.
I would like for the chart to display only the dates and values actually in the dataset and not interpolate and include dates/assign zero values.
Haven't had any success in searching the forum. Can this interpolation be prevented?
View 5 Replies
View Related
Jan 23, 2012
I need to have a footer that displays the file name in the chart area so that it will copy with the chart when I paste into a word document.
View 1 Replies
View Related
Jan 5, 2009
I have a link that is showing up under Edit/Links. I have tried to locate this link by highlighting all sheets and using the find command and using part of the file string however it is not finding anything. I tried this with a link that I know should be there and it takes me right to the sheet/cell its located in...
View 9 Replies
View Related
Sep 29, 2009
I've tried to look for a solution on the forum, but nothing seems to come up. I've attached a file to help show what I'm trying to resolve.
Column A of the file shows an amount, when summed, give a total of -3.5725E-09.
Each of the figures in column A only has 2 decimal points and if I manually total up the numbers on a calculator it give me zero.
Does anyone know how I can get rid of the -3.5725E-09 without another formula? I need the balance to be zero.
View 10 Replies
View Related
Jun 21, 2008
I remoted most of my number crunching stuff to a dll.
It work fine except for a few strange things that I observed like from time to time a strange message "Error in loading DLL" even though everything works fine. This message appears only when entering the main formula in the formula, and is no problem at all in usual work.
When I investigated, I noticed in the "windows task manager" that one instance of excel remains open even after I have closed excel. This phantom excel process is maybe related to the other problem I explained above.
Instead of calling a VBA function, it creates a VB6 object from this dll and uses the methods of this object. In this way I have remoted the number crunching functionality.
The main parameter passe in this process is a reference to the original workbook. I need it because the number crunching functions need to read data from the workbook.
I made it sure to terminate the life of the object properly on both sides by ad hoc obj=Nothing statements.
Still I think that the "garbage collection" or the "terminating" is the cause of the problem.
View 9 Replies
View Related
Mar 26, 2007
When copying sheets within a spreadsheet I receive numerous examples of the attached error message: when I search for the named range referred to in the source sheet it doesn't exist - I can only assume that it is a variable name that has been assigned somehow - but as far as I can tell, there aren't any macros associated with the spreadsheets in question that are generating the names that are displayed .. so unsure how the names are appearing. how to remove these phantom names so the prompt stops appearing?
NB: If I answer "No" to the prompt I must enter a different name - and if I do that, the system creates the new name in the copied sheet so if I then copy the copy on to another sheet the number of "named" ranges includes both the original "phantom names" AND the additional "phantom names" I've created as part of this process.
View 5 Replies
View Related
Mar 17, 2008
I have a chart with a title of "Store 123 Vs Store 789 Comparision". I would like to rename the worksheet name to "Store 123 Vs Store 789"
View 9 Replies
View Related
Jun 17, 2006
I downloaded an Excel template from Microsoft and I noticed that it had a dedicated worksheet with a chart in the middle. The area around the chart was gray and didn't contain cells.
I've attached the template to this post.
How can I add this type of dedicated chart worksheet to one of my workbooks/
View 3 Replies
View Related
Dec 5, 2006
I'm trying to loop through a worksheet where each row is an individual record. I need a macro to read the row and create a chart on a separate worksheet for that row, then move on until a chart has been created for each individual row. In English the problem is:
Read Row 1
Create chart based on row 1 data in new worksheet 1
Read Row 2
Create chart based on row 2 data in new worksheet 2
And so on
View 2 Replies
View Related
Aug 27, 2007
I'm looking for a "best of breed" technique to make charts automatically reference data selections on the current worksheet. While I can manually key in a substitute name to reference the new worksheet, this is tedious. The chart "Edit Series" dialogue window refuses to accept a reference that doesn't include the current sheet name.Does anyone know if there is a "relative cell reference" SYNTAX that works with "select data" ranges when defining chart series?Or can someone suggest a macro that can be used to modify multiple chart references to point to current sheet, since the standard " Find and Replace" doesn't seem to interrogate the contents of charts.
Additional problem description detail:
I'm creating numerous custom charts in a " boilerplate" worksheet, each chart references adjacent data. Is there some way to make these charts reference the "current sheet" automatically when my "TEMPLATE" worksheet is copied to a new worksheet? Whenever I copy the boilerplate worksheet, the series definitions continue to point to the abolute name of the original worksheet: =TEMPLATE!$GD$398
While I can modify references manually (e.g. edit to =NEWSHEET!$GD$398), this is time consuming.
View 2 Replies
View Related
Dec 18, 2007
To hide a worksheet upon open I use: wsSheet.Visible = xlSheetVeryHidden. What do I use to hide a chart which is its own worksheet?
View 3 Replies
View Related
Jul 8, 2006
I have tried a simple =CONCATENATE(A1+B1) in a cell and it shows the formula not the value. I have tried
1. Formatting cell to various formats other than text
2. Deleting the Row/Column and adding a new one and trying the same formula
3. Ctrl + ` to show/hide formulas
I dont know why it keeps displaying the formula. Anyone know of a way to fix this?
View 3 Replies
View Related
Jul 29, 2006
I have one more question, for now... I am imputing a date into a cell that is too narrow for the date, so the cell outputs xxxxxxx. How can I get around this without changing the cell width.
View 10 Replies
View Related
May 23, 2011
able to keep a chart stationary while scrolling through a worksheet entering data. A few points:
1) 'Freeze pane' wouldn't work for me since the chart is too large and I'd prefer to have the data sheet unfrozen for easy perusal.
2) I saw mention of opening a separate window with the chart in it, while having the workbook window aligned next to it. I don't know if that can work, but I'd also prefer to just have the chart on the worksheet and stationary.
View 3 Replies
View Related
Jun 18, 2013
How can I break the link between a chart and a worksheet? If I change the name of the worksheet and try to use the chart I got an error that the current worksheet is the one that the chart is related to. I tried changing the source from the links option in the bar - no effect. I checked conditional formatting - also no effect. How can I break all existing links between the sheet and the macro?
View 2 Replies
View Related
Apr 21, 2006
I have a chart with a series whose formula looks like this:
=SERIES("ACTUALS",BOD!$E$42:$AB$42,'OE2_EOM_Mar_06_(20APR_0900)_EDIT_THIS_ONE.xls'!BodOblActData,7)
The named range, BodOblActData, is a named range in the workbook, but how can I change the formula to use a named range in the work sheet?
View 3 Replies
View Related
May 15, 2009
I am having a difficult time with a calculation. I took over someone else's duty who is no longer with the company. The calculation used did not account for entire columns & the data I need to pull fromhas grown larger than the calculation. When I hit "F2" to manually change the data array, everything works fine until I hit enter and then the result displays as 0.0%. When I hit the insert function button, the result shows as the correct number. I tried copying the format only from an adjacent cell, but this did not work. When I tried to undo my changes, the cell still displays as 0.0%
The original calc is:
=SUM(IF(cData!$T$2:$T$45998="Internal",IF(cData!$N$2:$N$45998=9,1,IF(cData!$N$2:$N$45998=10,1,0)),0) )/SUM(IF(cData!$T$2:$T$45998="Internal",IF(cData!$N$2:$N$45998<>"",1,0),""))
The new calc is:
=SUM(IF(cData!$T$2:$T$65536="Internal",IF(cData!$N$2:$N$65536=9,1,IF(cData!$N$2:$N$65536=10,1,0)),0) )/SUM(IF(cData!$T$2:$T$65536="Internal",IF(cData!$N$2:$N$65536<>"",1,0),""))
The calc from the cell below the cell I am working in:
=SUM(IF(cData!$T$2:$T$45998="Internal",IF(cData!$O$2:$O$45998=9,1,IF(cData!$O$2:$O$45998=10,1,0)),0) )/SUM(IF(cData!$T$2:$T$45998="Internal",IF(cData!$O$2:$O$45998<>"",1,0),""))
View 3 Replies
View Related
Jul 14, 2008
I have a list of names in a column that will be changing on a weekly basis (with some names repeating). I need to create a Named Range that only counts unique values from that list of names (dynamically changing every week).
View 11 Replies
View Related
Mar 4, 2013
The following code is allowing me to stop or go ahead and delet a value.
If value deleted then msgbox value deleted sucesfully.
The problem now is that if I press cancel i still get msgBox for valur sucesfully deleted even though value has not been deleted.
What do i need to change in the code?
Code:
Private Sub CB3_Click()
Dim v
v = InputBox("Enter a new version number")
Range("A1").Value = v
Dim Found As Range
[Code] .....
View 9 Replies
View Related
Dec 29, 2008
Why does a cell formatted as "text", display ### but shows the actual words when formatted as "general?"
View 13 Replies
View Related
Mar 5, 2013
I have a worksheet which is used to display analysis data to the user. The sheet will be further protected with only some cells available to the user. I've used the attached code to retrieve some data from the sheet, clear a bunch of cells to reset the sheet and reset a graph (the graph itself is plotted as a log-log with the 1 to 100 on the Y-axis, hence the resetting of data to 0.5 to push it below the axis and make it invisible ready for later data dumping).
The code worked fine until I protected the worksheet. I have set the charts to unlocked using the format option in the chart area prior to locking. When I run the code though, it stops on the line indicated with the error "Application-defined or object-defined error". I've double checked and Chart 7 is the correct chart, and it is unlocked according to its format properties.
VB:
'get date of survey and equipment number for retrieving the data from the archive
dateSurvey = Worksheets("Calculation Page").Range("B2").Value
equipNum = Worksheets("Calculation Page").Range("F2").Value
'stop screen updating
Application.ScreenUpdating = False
[Code]....
EDIT: Oops, I've just noticed that even if I unprotect the sheet, I get an error on the .select within the seriescollection stating "Method 'Select' of Object 'Series' Failed", and the code worked perfectly before. I'm completely lost now...
View 9 Replies
View Related
Apr 24, 2014
The trend Equation on a chart is of the form y= a+x.(b+c.x) I want to use that equation in a spreadsheet to calculate value of y for the value of x. I can do it manually by inserting the a+x.(b+c.x) in a cell but would like it to be automatic as the a, b, c in the Equation changes regularly as more data is acquired.
View 2 Replies
View Related
Mar 20, 2012
I am trying to write a simple macro to create a chart over the used range in a worksheet. The first part of the macro correctly selects the used range which in this case is A1 to F19 when I single step through the macro. A listing of the macro is shown below:
Code:
Sub AddChartObject()
'
Sheets("Sheet1").Activate
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
[Code]...
When I place the formula given in MyArea as an argument for the source data, I receive a syntax error, so obviously it is the wrong argument. Numerous attempts to correct it also failed. As a sanity check, I placed the used range in an argument for the source data and was able to create the expected chart. fix the syntax error in the macro
View 4 Replies
View Related
Sep 12, 2008
I work with several graphs in three Worksheets in a Spreadsheet.
I want to use text value 'Home Run', say, from Worksheet#1 CELL $A$5 into my Excel Graph Title;
text value 'Score' as Y-Axis titile;
text value 'Player Name' for X-Axis title.
Can it be done with Macro or VBS?
Attributes of Title are:
Font 14, BOLD
Times Roman
Automatic Resizing to sencond line if Title is long (but, less than 127 characters).
View 9 Replies
View Related
Jul 12, 2007
now I thought about recording the macro, but it's an offset and if you click the chart, then it'll mvoe somewhere else even though the charts are always placed in the middle when generated. So I think I need to place it in a specific range. I want to use XY coordinates or range labels or something to that effect but would like something to this affect:
With Charts.Add
.ChartWizard source:=Worksheets("sheet1").Range("a1:a20"), _
gallery:=xlLine, title:="February Data"
End With
I got that in VBA help, but I'm not using Chart wizard, my code just creates the chart from the data on its own with specific chart type. So anyway, how would I make it put each of my five charts for the 25 people in the same place for every person. Performance Errors etc etc etc all will go in the right place everytime, regardless if you start with the page scrolled. I should do range right, but how do I change this macro to do it without chart wizard...just a chart that's already created and named. QUESTION: How do I place charts that are created from a data source onto a specific area of one worksheet, and those charts are always in the same place regardless of the person'a name.
View 9 Replies
View Related
Aug 21, 2014
=IF(D9<>"",IF(E9=TRUE,S5*0.46,TRUE)+IF(E9=FALSE,S5*0.3,TRUE))
If D9 is blank this formula displays FALSE, I need it be o or - instead of FALSE.
View 2 Replies
View Related
Aug 1, 2008
I have about 1000 links (to files on a server) in my Excel 2007 spreadsheet. I would like to edit them all at once so the word 'link' is displayed but the link stays the same. I can do it for each entry, but have no idea how to do it all at once - is there a way?
View 6 Replies
View Related
Dec 30, 2008
i have a cell that i have to put a lead time into ( weeks ) ie 7-9 if i type this into the cell it throws up all sorts of things but i want it to display 7-9 trouble is i know i could do ="7-10" but other users use it and wont now that how can i format the cell so it just displays what is input?
View 3 Replies
View Related
Apr 3, 2009
I discovered the following Macro (on another site). What I'm attempting to do is make data entry simple by entering a date such as 012209 and have a macro convert the entry to 01/22/09 as a legitimate date field. On entering 012209, the macro displays a value of 09/01/2021 with an actual cell value of 1/9/2021. I expected a value of 01/22/09.
Entering 010109 displays a value of 01/01/2009 with an actual cell value of 1/1/2009. I expected a value of 01/01/09 (I can live with this, just didn't expect a 4 digit year).
View 6 Replies
View Related