Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default ChartObjects Macro excel2000

the user operate a macro to build a chart, and the chart has an automatic
number
from the excel not from the user.
after a while the user want to deleat this chart by another macro
but the macro dont identify the chart
i want to add a line in the first macro that will give a name to the chart
it built

I Tried ActiveChart.Name = "XXX"
but it didnt work

i apriciet your help
rozent

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default ChartObjects Macro excel2000

Hi,

If the chart is an object on a worksheet then try

Activechart.parent.name = "XXX"

Cheers
Andy

רוז×*ט wrote:
the user operate a macro to build a chart, and the chart has an automatic
number
from the excel not from the user.
after a while the user want to deleat this chart by another macro
but the macro dont identify the chart
i want to add a line in the first macro that will give a name to the chart
it built

I Tried ActiveChart.Name = "XXX"
but it didnt work

i apriciet your help
rozent


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default ChartObjects Macro excel2000

hi Andy
your code dosnt work
i tried to tape a macro that gives name to the
existing chart bat ther is no option to choos

anything else?
rozent

"Andy Pope" wrote:

Hi,

If the chart is an object on a worksheet then try

Activechart.parent.name = "XXX"

Cheers
Andy

רוז×*ט wrote:
the user operate a macro to build a chart, and the chart has an automatic
number
from the excel not from the user.
after a while the user want to deleat this chart by another macro
but the macro dont identify the chart
i want to add a line in the first macro that will give a name to the chart
it built

I Tried ActiveChart.Name = "XXX"
but it didnt work

i apriciet your help
rozent


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default ChartObjects Macro excel2000

To manually change the name of a chartobject on a worksheet you need to
select the chart whilst holding the SHIFT key. When done correctly the
sizing handles around the chart will be white circles instead of black
squares. You should now see the chart name in the Name Box (next to the
formula bar). You can use the Name Box to edit the chart name.

The following code is what the macro recorder produces.

'Macro generated code
ActiveSheet.Shapes("Chart 1").Select
Selection.Name = "MyChart"

Cheers
Andy

רוז×*ט wrote:
hi Andy
your code dosnt work
i tried to tape a macro that gives name to the
existing chart bat ther is no option to choos

anything else?
rozent

"Andy Pope" wrote:


Hi,

If the chart is an object on a worksheet then try

Activechart.parent.name = "XXX"

Cheers
Andy

רוז×*ט wrote:

the user operate a macro to build a chart, and the chart has an automatic
number
from the excel not from the user.
after a while the user want to deleat this chart by another macro
but the macro dont identify the chart
i want to add a line in the first macro that will give a name to the chart
it built

I Tried ActiveChart.Name = "XXX"
but it didnt work

i apriciet your help
rozent


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofilter macro in excel2000 רוזנט Excel Programming 2 December 20th 05 03:19 PM
existing file excel2000 macro רוזנט Excel Programming 3 October 19th 05 03:15 PM
excel2000 pivottable macro רוזנט Excel Programming 4 June 30th 05 05:02 PM
pivotable excel2000 macro chaim rozent Excel Programming 1 November 1st 04 02:31 PM
pivotable excel2000 macro chaim rozent Excel Programming 3 November 1st 04 05:34 AM


All times are GMT +1. The time now is 01:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"