If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Chart Object Name
Excel assigns a name to each new chart object on a
worksheet as they are created (Chart 1, Chart 2, ...). If a chart is deleted the next chart created is assigned the next sequential number, so if the last chart built was "Chart 7" and you delete it and add another chart, the next chart is assigned "Chart 8." I would like to rename "Chart 8" to "Chart 7." Is there any way to accomplish this? Thanks, LB |
#2
|
|||
|
|||
Chart Object Name
To manually rename a chart object:
1. Hold the Ctrl key, and click on the chart to select it 2. Click in the Name box, to the left of the formula bar 3. Type a new name, or edit the existing name 4. Press the Enter key LB wrote: Excel assigns a name to each new chart object on a worksheet as they are created (Chart 1, Chart 2, ...). If a chart is deleted the next chart created is assigned the next sequential number, so if the last chart built was "Chart 7" and you delete it and add another chart, the next chart is assigned "Chart 8." I would like to rename "Chart 8" to "Chart 7." Is there any way to accomplish this? -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
#3
|
|||
|
|||
Chart Object Name
Hello,
I know how to do this using vba: Sub renameChart() ActiveChart.Parent.Name = "Chart 7" End Sub Highlight the chart in question and run this code. HTH, Raj AnalysisWorks Inc Evidence-Based Analytic Consulting www.analysisworks.net Download a free Excel Box Plot add-in: http://www.analysisworks.net/downloads.htm#BoxPlotPro "LB" wrote in message ... Excel assigns a name to each new chart object on a worksheet as they are created (Chart 1, Chart 2, ...). If a chart is deleted the next chart created is assigned the next sequential number, so if the last chart built was "Chart 7" and you delete it and add another chart, the next chart is assigned "Chart 8." I would like to rename "Chart 8" to "Chart 7." Is there any way to accomplish this? Thanks, LB |
#4
|
|||
|
|||
Chart Object Name
Sorry, I missed a part in the vba code I sent you. It should be this:
Sub renameChart() Dim nm As String nm = ActiveSheet.Name ActiveChart.Parent.Name = "Chart 7" ActiveSheet.Name = nm End Sub HTH, Raj "LB" wrote in message ... Excel assigns a name to each new chart object on a worksheet as they are created (Chart 1, Chart 2, ...). If a chart is deleted the next chart created is assigned the next sequential number, so if the last chart built was "Chart 7" and you delete it and add another chart, the next chart is assigned "Chart 8." I would like to rename "Chart 8" to "Chart 7." Is there any way to accomplish this? Thanks, LB |
#5
|
|||
|
|||
Chart Object Name
Hi Raj -
Actually, your first one was fine. The extra lines seem to serve no purpose. - Jon ------- Jon Peltier, Microsoft Excel MVP http://www.geocities.com/jonpeltier/Excel/index.html _______ Raj Singh wrote: Sorry, I missed a part in the vba code I sent you. It should be this: Sub renameChart() Dim nm As String nm = ActiveSheet.Name ActiveChart.Parent.Name = "Chart 7" ActiveSheet.Name = nm End Sub HTH, Raj "LB" wrote in message ... Excel assigns a name to each new chart object on a worksheet as they are created (Chart 1, Chart 2, ...). If a chart is deleted the next chart created is assigned the next sequential number, so if the last chart built was "Chart 7" and you delete it and add another chart, the next chart is assigned "Chart 8." I would like to rename "Chart 8" to "Chart 7." Is there any way to accomplish this? Thanks, LB |
Thread Tools | |
Display Modes | |
|
|