![]() |
|
#7
|
|||
|
|||
|
Quote:
Thanks for the input, macropod, that's for sure something I will think about! You say: "all you need is a dialog box for selecting the source file" - that's actually the key point: Around 50 graphs in the document, around 10 people working on it, so there are plenty of source files (that's why I try to gather them in a reference file)...For the moment, I could achieve what I wanted to do with graphs. As often, a small mistake was hindering me: I noticed the graphs I am working with are not of type chartObject or Chart, but they are actually shapes! Therefore, the code in my previous post always jumped to the "else" condition. I replaced this code block and now loop through the shapes: Code:
Dim shp As Excel.Shape
For Each shp In xlSheet.Shapes
If shp.Type = msoChart And shp.Name = rangeOrChart Then
shp.Copy
If doc.Bookmarks.Exists(wordBookmark) Then
Set bmRange = doc.Bookmarks(wordBookmark).Range
bmRange.Paste
doc.Bookmarks.Add wordBookmark, bmRange
End If
chartFound = True
Exit For
End If
Next shp
Thanks again to both of you for your valuable guidance! Now, let's go for the tables in the document
|
| Tags |
| charts, copy, update |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to stop macro modifications from undoing when Updating Word Linked Tables?
|
soroush.kalantari | Word VBA | 3 | 06-27-2021 06:15 PM |
| Problem With Updating Linked Excel Tables in Word 2013 | maverick1714 | Word | 6 | 09-30-2014 12:30 AM |
Word 2013 Fields not updating
|
awaywithpixie | Word | 1 | 09-10-2013 10:35 AM |
| Updating lists of figures/Tables in a protected document | IHARKIS | Word | 0 | 03-02-2011 04:39 AM |
| Auto-updating basic math functions & cross-referencing tables | FranklinBluth | Word Tables | 13 | 11-19-2009 10:26 AM |