Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Macro creates two graphs instead of one?

Hi,
I used the macro recorder to record all the steps that I took to create a
graph. However, when I try to run the macro, it creates two versions of the
graph that I want - putting them in as Chart1 and Chart 2 (or whatever else
the numbers happen to be) in my workbook.

Chart1 is usually the chart that I want, which has a title and data table,
and Chart2 is the same chart but without the title and data table. I only
want Chart1. Any thoughts on why Excel is doing this?

FYI, I am creating a bar graph, and the macro is supposed to define chart
title and put in the data table under the graph.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Macro creates two graphs instead of one?

I suspect you have included code that creates the additional (could have been
a mistake when you were recording). Perhaps it creates the one with missing
elements, then copies it and adds the elements. If so, you would need to
remove the lines that do this.

--
Regards,
Tom Ogilvy




"et10yl" wrote:

Hi,
I used the macro recorder to record all the steps that I took to create a
graph. However, when I try to run the macro, it creates two versions of the
graph that I want - putting them in as Chart1 and Chart 2 (or whatever else
the numbers happen to be) in my workbook.

Chart1 is usually the chart that I want, which has a title and data table,
and Chart2 is the same chart but without the title and data table. I only
want Chart1. Any thoughts on why Excel is doing this?

FYI, I am creating a bar graph, and the macro is supposed to define chart
title and put in the data table under the graph.

Thanks!

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
VBA Code, My excel macro creates the charts on top of each other osman[_5_] Excel Programming 3 July 24th 06 09:53 PM
Macro creates additional datafiles when saving copies of workbook Peter Rooney Excel Programming 23 August 16th 05 02:59 PM
selecting variable rows in a macro that creates a pivot table amarch00 Excel Programming 1 May 12th 05 03:43 PM
How to Rename a Blank Sheet that a macro Creates Darin Kramer Excel Programming 3 December 6th 04 12:55 PM
Macro that creates a directory but... Andy Excel Programming 7 November 28th 04 06:23 AM


All times are GMT +1. The time now is 08:00 PM.

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"