![]() |
#1
|
|||
|
|||
![]()
Hi all
I am new to VBA and new to this forum ("Hello Lawrence") ![]() I have a word document with shapes that I added via the Insert \ Shapes menu entry Some of the shapes are lines, others are rectangles and some are callouts. I even have a picture or two. (Some are in the header area) I wanted a script to run through the shapes and select them. I tried this: Sub FindShapes() Dim doc As Word.Document, rng As Word.Range Dim shp As Word.Shape Set doc = ActiveDocument Set tot = doc.Shapes a = tot.Count For Each shp In doc.Shapes shp.Select Debug.Print shp.Type; shp.ID, shp.Name Next End Sub But it does not find all the shapes. In same cases it may find only one shape. What am I doing wrong? Thank you Lawrence |
Tags |
shapes |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
coolio2341 | Word VBA | 6 | 01-31-2019 01:17 PM |
Find This Or That On Line Six of Word Document | StephenRay | Word VBA | 33 | 09-29-2017 02:01 PM |
![]() |
wblock@cnu.edu | Word | 4 | 08-23-2017 06:11 PM |
![]() |
PatrickYork | Word | 1 | 01-05-2012 04:12 AM |
![]() |
bonani | PowerPoint | 1 | 11-26-2009 06:21 PM |