Macro To Refresh Pivots Also Resets Chart Data Label Fonts

Aug 20, 2013

I have 6 pivot charts within a document. I use a macro associated with a button to refresh the tables and therefore the data displayed on the charts.

However, each time I refresh the data, the 'data label' font size also refreshes. What is particularly odd is that 5 of the charts are pie-graphs, of those 5 graphs, the font size only resets on 4 of them (with the data labels in a single chart staying at my desired font size).

I can manually put the font size back to that which I desire but I'd rather it just didn't change in the first place.

I've had a look to see if there's any noticeable differences between the 5 charts but there's nothing which I can find.

I'd be happy to run a bit of VBA to set the font size as I want it, if there isn't a better solution.

View 1 Replies


ADVERTISEMENT

Macro To COUNT For Pivot And Refresh Pivots

Jul 15, 2008

A macro to refresh a pivot tables. And also Count the Rows and Columns.

I have multiple tabs with a pivot on each. I did copy the main pivot so I was hoping to be able to refresh the main and it will refresh all of the rest?

The macro is pasting in the "DATA" tab then (trying) to count the Rows and Columns.

Then (trying) to refresh all of the "tabs" Pivots at once..

Here is what I have so. I did get it to work without counting the Columns so I will include that.

'***Verifying that "You" want to continue with the Macro***
Answer = MsgBox("Are you sure you want to update?", vbQuestion + vbYesNo)
If Answer = vbNo Then Exit Sub

'***Deleting Rows***
Sheets("Data").Select
Rows("6:60000").Select
Selection.ClearContents
Range("A6").Select

'***Paste in from Business Objects***
ActiveSheet.Paste

'***Deletes the Headers that came with the Business Objects Copy***
Rows("6:9").Select
Selection.Delete Shift:=xlUp
Range("D6").Select..................

View 9 Replies View Related

Label Filter And Data Refresh

Sep 25, 2012

I have a spreadsheet that has about 40 pivot tables that use label filters for filtering HH:MM and "greater than" selection. When I do a refresh, I have to go back and reset the label filters. Is there any way to not have to re-do every label filter after refresh? I have looked at all the settings and didn't see anything in there that looked like it would work. Maybe VBA?

View 4 Replies View Related

Different Fonts In Chart Legend

Jan 15, 2007

I have a chart graphing different series, which includes a legend to label each series. The labels are linked to particular cells in the worksheet.

Most of the chart has Arial font formatting, but I need to change the formatting of a few characters in the legend:

I know that i can change the formatting of the whole legend, and even different entries in the legend. Is it possible to change the font of just a couple of characters in one legend entry?

Elements I need to change are:
Font type (eg from arial to symbol)
Size (varying from 8 to 14)
Bolding etc.

View 4 Replies View Related

Adding Text To Chart Data Label

Dec 14, 2011

I have a simple line chart but I want to add an text description to each of the points. The data is driven by a pivot table so the text needed may change based on the drop down options.

If I was using the below data I would want the line graph drawn using the date and value, but the data label at each point to state the description.

Date Value Description
01/01/2010 90% Text A
01/02/2010 80% Text B

View 2 Replies View Related

Excel 2010 :: Data Label On A Chart

Jun 23, 2014

I make a bar chart from series of data from cells.

The data consist of values that regarding of students achievment in a test. On the cell if the value is 56.67 and on the data label is shown 56.67.

When the cell value is 50.00, which then I've change the format of the cell to custom format to 0.00;; so it only show 50 but on the data label of the chart it will show 50.

Even after I change the format of the data label it will still show '.' At the of the value.

How to hide the '.' On the data label if the decimals value is .00?

I'm using MS Excel 2010

View 6 Replies View Related

Conditionally Label Chart Data Series

Jun 28, 2008

I think that this is probably rather simple, but the answer is eluding me, I cannot find anything that helps online either. I have a set of data that looks similar to the sample below, however it is quite a bit longer. I would like the 'Effect' as the X axis, with the 'Score' as Y. This basically shows three columns, which is fine. However I would also like to use the 'ID' as the label against each plot point and I'd like each plot point to look the same.

The problem I am having is that to get the labels to show, I am having to add each series manually, which is rather time-consuming. Is there a correct (faster) way of doing this as I think I'm missing something obvious!

IDScoreEffect
12.11
21.92
31.33
41.81
51.53
61.72
72.33
81.42
92.21
102.13
112.12.................

View 2 Replies View Related

Column Label Format After Pivot Refresh

Jan 15, 2014

After pivot refresh, several individual cells of column labels are rotating again from vertical to horizontal.

How can I fix this format?

15-01-2014 8-47-31.png

View 6 Replies View Related

Macro Resets Total In Text Box If A Number Deleted?

Jun 26, 2014

Attached file 140625 box adds.xlsm has three textboxes that are totalled in the fourth box.

The Code updates the total automatically as you ENTER numbers into cells, and overcomes "blanks", but I need it to update the total if you delete any of the three numbers.,

As shown below, I set the Code to "Exit Sub" if a cell becomes blank, but can't see how to invert it without going through the same "checking" process twice for the other cells.

As the Code structure is essentially the same for each box, I've just shown the first one here:

VB:
Private Sub TextBox1_Change()
If TextBox1.Value = "" Then Exit Sub [code]....

View 1 Replies View Related

Label Scatterplot Chart: Plot Two Values Against Each Other Using A Scatterplot, And Label Each Service

Feb 13, 2008

I'm working for a local authority who have been given a mass of survey data. In this particular task, residents of each small district within our area have been asked their levels of satisfaction with a service, and how important they think that service is. I want to plot these two values against each other using a scatterplot, and label each service.

Excel does not automatically allow this so I used a very good sheet from the forums here: Attach labels with names to the points in a scatter plot. It's the top file, and works well. However, I can't seem to customise it for my own data.

Problems include:

- Excel often freezing when I try to run it
- Not all the data being picked up for the chart
- Incorrect labels being picked up..........

View 4 Replies View Related

Pivot Chart Changes Chart Upon Refresh

Aug 12, 2006

I have created a pivot table and chart. The pivot chart consists of three sets of data from the pivot table. Two of the data sets are lines and the third data set is displayed as columns. I made the third data set into columns by right clicking on the data series line and selecting chart type. I change the chart type for that data set to a column and it worked great. The only problem is that when data is refreshed in the associated pivot table, the entire chart turns into columns with completely different formatting. Does anyone know how I can maintain the graph with the two lines and one column data set when I refresh the data?

View 4 Replies View Related

Refresh All Bloomberg Data Using Macro Or VBA

Jun 24, 2014

I attempted doing this by recording the macro but the macro doesn't read me clicking onto Bloomberg Refresh Data Button. How can I do this using VBA?

View 1 Replies View Related

(concatenate) Automatically On Refresh Data, Run Macro?

Mar 16, 2009

Is it possible to run a macro (concatenate) automatically on a sheet when data is refreshed on that sheet from access database? It there a code that has to be written in vb?

View 5 Replies View Related

Auto Refresh Data In Pivot - Macro

Mar 14, 2008

I see some code on the forum on how to automatically refresh pivot tables in excel. I know to press alt + f11, but where do I go from there to put the code in? Also, what if I have several pivot tables in the spreadsheet, is there anyway to refresh all of them automatically?

View 9 Replies View Related

Macro To Force Refresh Bloomberg Data

Feb 8, 2007

I have a workbook that pulls in index data from Bloomberg, most data is updated realtime, but one index we track is only updated late at night. I want to write a macro that will refresh all of the data in the worksheet and then save a snapshot of the workbook. I have all the code for saving the snapshot, but getting the data for the one index to refresh is proving difficult. None of the standard ways I know to refresh external data (both Excel commands via tools menu, and Bloomberg specific refresh commands) seem to work on these cells. The only way so far I've found to get these cells to pull in current data is to delete them and rewrite the formulas.

suggestion for a Macro that would force a refresh of this data?

View 7 Replies View Related

Being Able To Refresh Data- So That When I Hit Refresh It Gets Info Frm Another File

Jul 27, 2006

i have an excel spreadsheet with 27 or so workeets. it contains sales figures in it.
I want to be able to link mutiple cells of this workbook to another workbook so that it retreives that data, So that when I hit the refresh (!) button it will automatically put the data in. I will recieve new sales figures (new files) on a monthly basis so i want it to be able to update the figures to the new figures.

View 4 Replies View Related

Label Chart Elements

Jun 20, 2008

I've used Rob Bovey's Chart Labeller a lot recently, but this morning when trying to add some labels, I get the error message

"Unable to get the Name property of the Series class (bGetSelectionIndexes())"

Is there a limit to the number of series it will work with?

View 6 Replies View Related

Macro With Same Color Fonts As Cell Fill

Apr 2, 2009

I need a macro to fill any cell in any column with red color. The same cell should also have red fonts with word 'RED' typed in the cell, so that word 'RED' is invisible.

View 9 Replies View Related

Label Values Not Updating, But Chart Is

Oct 17, 2005

I have a number of charts (mostly pie) I don't have a legend, but I do have "Show label and percent" selected.

When I add in new data the actual chart updates to show the right sized pie slices... but the values on the labels don't update as well. I can't figure out how to make that happen?

View 9 Replies View Related

Macro Won't Update Pivots

Jul 10, 2008

I have a macro that is supposed to update 3 pivot tables with the change to just the first one but it doesn't work. Can anyone help?

Here is my code but nothing happens when I change the first pt (C & S). It doesn't update the other 3 tables.

Private Sub Worksheet_Calculate()
Dim PF1 As PivotField
Dim PF2 As PivotField
Dim PF3 As PivotField
Dim PF4 As PivotField
Dim x As String
Application.EnableEvents = False
Application.ScreenUpdating = False
Set PF1 = ActiveSheet.PivotTables("PivotTable4").PageFields("State")
Set PF2 = ActiveSheet.PivotTables("PivotTable3").PageFields("State")
Set PF3 = ActiveSheet.PivotTables("PivotTable2").PageFields("State")
Set PF4 = ActiveSheet.PivotTables("PivotTable1").PageFields("State")
x = PF1.CurrentPage
PF2.CurrentPage = x
PF3.CurrentPage = x
PF4.CurrentPage = x
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub

Pivot Table 4 = C & S this is one I want to make the change to
Pivot Table 3 = Sales Pivot
Pivot Table 2 = 2005 Pivot
Pivot Table 1 = SMG Pivot

View 9 Replies View Related

Excel 2013 :: Chart Label Not Displaying?

Jun 8, 2014

I have a workbook, which I use for different departments that displays a number of different pie charts and I have found that a particular pie chart omits a specific label repeatedly. The pie chart displays the wedge within the chart itself, but does not display the label. At the moment I have data labels with percentages. All other labels display, of which there are 7. I found a solution that fixes the problem each time it arises and that is to select Chart Tools/Format/Series 1 data labels and then Format Selection. When I then select any data label, I click on "Clone Current Label" and the missing label appears with the correct percentage amount. I use the workbook for multiple uses and rather than have it present as a template (*.xltm), it is a macro-enabled spreadsheet (*.xlsm). Could this be related to the problem?

View 2 Replies View Related

Bubble Chart: Add To Label Hover Display

Dec 19, 2006

When you hold your mouse over a bubble on a bubble chart, it typically displays the x value, y value and size value. Is there any way to add other captions to display? For example, if my chart is based on sales data and I'm plotting a point based on ease of probability (x axis) and dollar value (y value)....I'd also like to see the initials of the salesperson assigned to that prospect when I hover over the bubble?

View 2 Replies View Related

Label Chart Scatter Plot Markers

Jun 4, 2008

In the attached spread sheet I have created a scatter plot. How can I label each of the markers with its appropriate label from Column A - the Company Ticker. When I right click to show data labels it brings back the incorrect column. Also is there a way once the labels are brought in to put them in the circle and so that the chart doesn't look too clumped together.

View 2 Replies View Related

Text & Cell Value For Chart Series Label/Name

Jun 26, 2008

How do I name my data series in a chart so that the name consist of both a cellreference and my own text?
Example: "Name" & Sheet1!A1. If the value in A1 is 2 then the series name shold be Name2

View 3 Replies View Related

Preserve Formatting On Pivot Chart Refresh

Sep 22, 2009

have come across the apparent inflexibility of a pivot chart retaining its user defined formatting whenever it is refreshed.

I understand I can save my chosen formatting as a 'user defined' custom chart, which can be applied post-refresh, but was wondering if a simple bit of code would do this automatically, saving the additional clicks!

how to deal with the attached. How could I adapt the code to call in other 'user defined' charts I may create in the future?

View 8 Replies View Related

Multiple Pivots With 1 Data Source

Oct 24, 2012

I have one single data source and need to create multiple piot tables with it.

But when I group dates for example, this applies to all Pivot Tables that share the same pivot cache.

Is there a quick way (VBA preferred) to duplicate an existing pivot table with a new pivot cache?

I know about the technique to open a new workbook and copy it there and back again, but it is really annoying.

View 1 Replies View Related

Pivots With Data From Multiple Sheets

Feb 22, 2008

there's a way to pivot data from two sheets (both the sheets and the pivot table are in the same workbook)?

View 9 Replies View Related

How To Edit And Enable Data In Actual Pivots

Feb 14, 2014

I am trying to edit the data in the actual pivots rather than editing in the data source. i know there is vba code to enable pivot table editiing. how to enable this

View 14 Replies View Related

Vba Delete Of Oleobject Resets Globals?

Jun 6, 2007

I'm developing a series of schedules that organize building plans. In one schedule I maintain a list of areas (called spaces, like a lobby or a conference room). I programatically maintain the list of spaces in the schedule for sorting and other external functions that are irrelevant. In the process I occasionally delete a worksheet. My worksheets have 4 buttons and a combobox. Whenever I delete a worksheet with these objects, I lose ALL of my module-level variables. These include two collections, a boolean, and an integer.

I'll post only the code for now. If you want to replicate, remember to place at least one button or combobox on your worksheet. You'll need to execute each sub manually. I have placed debug statements to print the globals to the immediate window. Notice that the 3rd debug statement shows the globals as present when it's called from the delete routine; however, if you manually execute that print routine after the delete, the globals are gone!

Option Explicit
Const SHEET_TARGET_RANGE As String = "C13:K36"
Dim m_objLocal As New Collection
Dim m_objMaster As New Collection
Dim m_bln As Boolean
Dim m_int As Integer
Public Sub Debug_Populate_Globals()
Dim intLoopCounter As Integer
Set m_objLocal = New Collection
Set m_objMaster = New Collection
For intLoopCounter = 1 To 8
m_objLocal.Add intLoopCounter, CStr(intLoopCounter)
m_objMaster.Add intLoopCounter, CStr(intLoopCounter)....................

View 6 Replies View Related

Fixing Chart Axis Scale To Thousands And Displaying Multiplication Display Label On Remaining Number

May 16, 2013

I want to automate the Display labels in my Charts using VBA Coding…

I would need to use this small code in Charts with different Scales as some of the Scales in my Data are in a very large Range close to Trillions so its not possible to have these as the Primary-Y-Axis Scale and therefore I would need to use the in-built Display label option which Excel provides..

However, I always prefer to have the scale in the Range of Thousands so the Max I can have in the Scale can be 10,000 so if there is any Number more than that or the Scale is going above than I would prefer that this gets auto-calculated to Multiply with the remainder and show appropriate Scaling.

For Ex:In this example My largest Number is 4500000000 which is 100 M..So I would want the scale to show 4500 and the Display label as X Millions..

So The Display Label would be different for different Ranges but the Max Scale preffered would be 10,000.

View 8 Replies View Related







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