Reply
 
Thread Tools Display Modes
  #1   Report Post  
ronymaxwell ronymaxwell is offline
Junior Member
 
Posts: 4
Default Referencing pictures in a Canvas Shapes collection

I have a canvas in a document with a number of pictures on it. I placed the pictures into the document manually. I manipulated them (.Left, .Top, .Name, etc) using Document.Shapes(1).CanvasItems(i). where i refers to each canvas shape in the collection. There are a lot of pictures and I want to generate a list of their filenames (including path) without having to individually select each one and get the info manually. I can't find any way to reference the pictures and hence their filenames. There doesn't seem to be a property in the canvas shapes collection to do this.
  #2   Report Post  
Venky62 Venky62 is offline
Junior Member
 
Posts: 19
Default

This code will print out the full path of all the pictures in your document. But they should have been inserted into the document with a "Link" or "Insert and Link" selected in the Insert Picture dialog box. When you insert a picture as an object, without speciying that it should also be linked, then that pictue does not have the name and path of its source.

Quote:
Originally Posted by ronymaxwell View Post
I have a canvas in a document with a number of pictures on it. I placed the pictures into the document manually. I manipulated them (.Left, .Top, .Name, etc) using Document.Shapes(1).CanvasItems(i). where i refers to each canvas shape in the collection. There are a lot of pictures and I want to generate a list of their filenames (including path) without having to individually select each one and get the info manually. I can't find any way to reference the pictures and hence their filenames. There doesn't seem to be a property in the canvas shapes collection to do this.
Attached Files
File Type: txt ListShapeNamesAndPath.txt (975 Bytes, 265 views)
  #3   Report Post  
ronymaxwell ronymaxwell is offline
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Venky62 View Post
This code will print out the full path of all the pictures in your document. But they should have been inserted into the document with a "Link" or "Insert and Link" selected in the Insert Picture dialog box. When you insert a picture as an object, without speciying that it should also be linked, then that pictue does not have the name and path of its source.
Thanks for that, Venky. I didn't link them unfortunately. I'll bear it in mind though in the future.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking Shapes to Pictures in Word 2007 holman Microsoft Word Help 7 May 14th 23 08:52 AM
grouping "shapes" to pictures in word 2007 rockhammer Microsoft Word Help 2 March 9th 10 05:52 PM
grouping "shapes" to pictures in word 2007 rockhammer Microsoft Word Help 0 March 9th 10 04:22 PM
Grouping shapes with pictures JR Hester Microsoft Word Help 3 July 31st 09 11:05 AM
Position Pictures (or Drawing Canvas) in Print View of Word Ray Pixley Microsoft Word Help 7 January 2nd 07 04:07 PM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"