Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
Patrick C. Simonds Patrick C. Simonds is offline
external usenet poster
 
Posts: 14
Default Find a picture in a document

I have inserted some pictures in a document and I need to be able to use a
macro to select the pictures individually. What I do not know is how to
determine the picture name in the document so that the macro can select the
picture.. The code would look like: ActiveDocument.Shapes("picture
4").Delete


  #2   Report Post  
Posted to microsoft.public.word.pagelayout
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Find a picture in a document

Hi Patrick,

With pictures linked to the original image files, you can always use the image's filename.

With embedded pictures, however, unless you use vba to assign meaningful names to embedded pictures, you'll likely find yourself
trying to push a piece of string up a hill. That's because Word assigns the picture numbers according to the order in which they
were inserted into the document, irrespective of their relative locations. That and, if you delete one, the unused number doesn't
get reused. On the whole, therefore, you're likely to be better off working via the picture's location in the document. Even then,
if you've got more than one picture anchored to the same location, you'll be back to working with the insertion order unless you
start comparing page positions.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Patrick C. Simonds" wrote in message ...
I have inserted some pictures in a document and I need to be able to use a macro to select the pictures individually. What I do not
know is how to determine the picture name in the document so that the macro can select the picture.. The code would look like:
ActiveDocument.Shapes("picture 4").Delete



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
where can i find a picture of a witch? Sasha New Users 7 October 7th 06 01:59 AM
how do I find the graphic tab and fing the format picture dialog [email protected] Microsoft Word Help 1 February 22nd 06 02:53 AM
How do I find the name of the Picture file inserted in Word? Milind New Users 5 February 15th 06 05:34 PM
"Click columns, st. toolbar" - can't find picture or word columns Merrijo Tables 1 September 16th 05 09:47 PM
How do I find the file name of a picture in an existing document? Frank Page Layout 1 June 1st 05 12:23 AM


All times are GMT +1. The time now is 05:52 AM.

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"