Wrathchild
Technical User
I have code to look at every shape in a Word doc and if it's named a certain name then return the page#. I only care if said shape is on an Even page. Currently searching the entire doc is slow so I'd like to only search shapes on Even pages. How do I iterate through shapes on an individual page in Word?
Currently using
...
Set objWord = CreateObject("Word.Application")
For Each S In objWord.ActiveDocument.Shapes
If objWord.ActiveDocument.Shapes(intI).Name = "Barcode" Then
Would like something like
For Each S In objWord.ActiveDocument.CurrentPage
Currently using
...
Set objWord = CreateObject("Word.Application")
For Each S In objWord.ActiveDocument.Shapes
If objWord.ActiveDocument.Shapes(intI).Name = "Barcode" Then
Would like something like
For Each S In objWord.ActiveDocument.CurrentPage