Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA code for chart

Hello everybody
How do I get the VBA code on the Chart once the chart is generated
(manually)?
I would like to automate this process of obtaining the charts for
several worksheets at once
Thank you

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA code for chart

Turn on the macro recorder while you create the first one manually.

then adjust the code to do what you want.

--
Regards,
Tom Ogilvy


"chris" wrote in message
oups.com...
Hello everybody
How do I get the VBA code on the Chart once the chart is generated
(manually)?
I would like to automate this process of obtaining the charts for
several worksheets at once
Thank you



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA code for chart


Thank you. But it will be quite complicated to recreate the chart to
record the macro.

Is there any other way? For example, is there any way to uncover the
VBA code which corresponds to the generated chart?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA code for chart

No - not directly.

the alternative is to learn the object model for Charts and program it.

or
make a copy of your chart, then turn on the macro recorder and make minor
changes to major elements of the copy of the chart. The macro recorder
often captures a lot of the settings associated with that change.

--
Regards,
Tom Ogilvy


"chris" wrote in message
oups.com...

Thank you. But it will be quite complicated to recreate the chart to
record the macro.

Is there any other way? For example, is there any way to uncover the
VBA code which corresponds to the generated chart?



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
Chart Object VB Code MS[_2_] Charts and Charting in Excel 2 March 6th 07 11:41 AM
Add chart - what is wrong with the code? tskogstrom Charts and Charting in Excel 3 October 24th 06 05:22 PM
Flow chart of code? Is there a way to produce a graphical flow chart? Craigm[_40_] Excel Programming 8 August 23rd 05 10:04 AM
Please Help With Chart Code WayneK[_7_] Excel Programming 2 August 9th 05 04:48 PM
Help with following code creating chart Vince Excel Programming 2 June 22nd 05 12:44 AM


All times are GMT +1. The time now is 12:03 PM.

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

About Us

"It's about Microsoft Excel"