Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2007, 03:55 PM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel Charts to Word

Apologies in advance. I have posted this somewhere but not as a new query.

I need to find some VBA to export charts out of Excel 2000 into MS Word 2000 as pictures. Once they exist as picture files, I then need to merge them using 'IncludePicture' merge field in a mail merge document.

Is there anyone who could please point me in the right direction?

Thanks in advance,

Sanjo

 
Old March 31st, 2007, 12:07 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>I need to find some VBA to export charts out of Excel 2000 into MS Word 2000 as pictures

When export is done, the chart remains chart and not a image.

>Once they exist as picture files,...

Here you have to cope the chart and save them to a file... some thing like this Eg:- Me.ActiveChart.CopyPicture xlScreen, xlBitmap, xlScreen

Or to ease the work...
First the VBA code depends from where it runs from.,,,
1) EXCEL file which contains charts and export to WORD or
2) WORD file from which you want to read the chart object and bring it in.
OR
3) You have VB app that does this EXCEL VBA and WORD VBA on the click of the button and read the excel file and write back to word doc?

Here the code differs and from the both the point of view the work is simple (no complex code) but lot of childish :D lines of code you have to write.

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
OWC making Excel with bar charts mondayisgreat Classic ASP Components 0 March 2nd, 2006 02:24 PM
Export ASP charts into excel or .ppt slides usa_vn75 Classic ASP Databases 2 January 6th, 2005 05:31 PM
Excel Charts in Word migalley Excel VBA 4 March 5th, 2004 02:47 PM
how to create a new series in excel charts pavankumar Excel VBA 0 November 7th, 2003 11:17 AM
How can i manipulate excel charts from VB 6 chiefouko VB Databases Basics 1 July 24th, 2003 05:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.