Jump to content

Moving charts fom excel to word.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Guest_priorityone_*

Guest_priorityone_*
  • Guests
I am trying to move charts that I made in excel to a word document via a macro. Does anyone know what code would allow me to do this. So far I have the code to open the word document but can't seem to get the rest.

#2
xXHalfSliceXx

xXHalfSliceXx

    Speaks fluent binary

  • Moderators
  • 1,694 posts
in the 'ws' loop, add this: (I'll let you decide where, it'll need another paste afterwards)

ws.ChartObjects.Copy

After all is done, Word's 'View' needs to be changed to 'Print Layout' to see the chart(s).

Posted Image
Posted Image


#3
Guest_priorityone_*

Guest_priorityone_*
  • Guests
I will use this, am sure this is what I was looking for:)

#4
xXHalfSliceXx

xXHalfSliceXx

    Speaks fluent binary

  • Moderators
  • 1,694 posts
well you posted on another forum. And i found the reply to it.

Posted Image
Posted Image


#5
xtraze

xtraze

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 910 posts
I just copy/paste lol,
Why use a macro to copy a chart ??
Maybe I understood wrong, But.

Quote

I am trying to move charts that I made in excel to a word document via a macro