Copying and Pasting Charts into Word - vba syntax

matlaz27

New Member
Joined
Aug 4, 2011
Messages
2
Hi, these are 2 easy problems I'm sure, I just can't find the proper keyword to use for vba in Excel 2003.

What I'm doing with my program is creating multiple graphs and pasting them into Word.

So whenever you make a new chart, it's labeled "Chart 1", "Chart 2" etc, and keeps increasing.

Currently, the only way I can do it is to create a graph and keep it selected so I can use the "ActiveChart" function, then I can copy it paste it, etc, and then open up word, and paste it and close word. Then work on the next one.

So my first question is- How do I label the chart, so that when it's not selected, I can type "ChartA".Select, for example.

My second question is- How do I leave Microsoft word open, then get back into the same word file when it's already open?

Thanks,
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Well figured out the first half through a painful trial and error
ActiveChart.Parent.Name = "Name"

The Parent was throwing me off, symple sintax!
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top