> You do not explain exactly what you expect the macro to do.
>
[quoted text clipped - 16 lines]
> > not carried over.
> > Is there anyone out there that has such a macro and is willing to share it?
I'm glad the macro is just what the Dr. ordered, but just one other little
tip - If you turn on the non-printing characters (¶) you'll see the markers
in the otherwise-empty text boxes. Depending on the text wrap applied they
either mark & account for inappropriate white space or appear in places
where they normally 'shouldn't'... That makes such things easier to spot.
HTH |:>)
Bob Jones
[MVP] Office:Mac
On 12/21/06 1:19 AM, in article
A076402A-C61A-4751-86C1-9F00BB2084D8@microsoft.com, "Johann Swart"
<JohannSwart@discussions.microsoft.com> wrote:
> Hi Lene,
> Thanks for the response.
[quoted text clipped - 19 lines]
>> layer. If this is the case, I think that the macro found via the link below
>> is what you are looking for:
http://wordtips.vitalnews.com/Pages/T1447_Searching_for_Floating_Graphics.htm>>
l
>>> Some time ago someone provided me with a macro to search for graphics that
>>> were created by using any of the tools on Word's Drawing toolbar, i.e.
[quoted text clipped - 3 lines]
>>> not carried over.
>>> Is there anyone out there that has such a macro and is willing to share it?
Johann Swart - 27 Dec 2006 06:03 GMT
Hi Bob,
Yes, you're hundred percent correct; it's just so much easier--and
quicker--having to wade through hundreds of pages looking for an empty 10x5
millimetre (½"x¼") text box (with a 6pt paragraph marker) that could or could
not be there.
Thanks for your response Bob; it's highly appreciated!
Regards
Johann Swart
> I'm glad the macro is just what the Dr. ordered, but just one other little
> tip - If you turn on the non-printing characters (¶) you'll see the markers
[quoted text clipped - 44 lines]
> >>> not carried over.
> >>> Is there anyone out there that has such a macro and is willing to share it?
Lene Fredborg - 27 Dec 2006 10:32 GMT
As far as I understand now, you are actually only interested in finding
_empty textboxes_ and delete them. This can be done much easier. The macro
below finds all shapes in the drawing layer of the active document. If a
shape is a textbox and if that textbox contains nothing but a paragraph mark,
the textbox is automatically deleted. When finished, a message tells you how
many textboxes have been deleted.
Sub DeleteEmptyTextBoxes()
Dim oShape As Shape
Dim nCount As Long
nCount = 0
For Each oShape In ActiveDocument.Shapes
If oShape.Type = msoTextBox Then
'If textbox contains only a paragraph mark, delete it
If Len(oShape.TextFrame.TextRange) = 1 Then
oShape.Delete
nCount = nCount + 1
End If
End If
Next oShape
MsgBox nCount & " empty textbox(es) deleted."
End Sub

Signature
Regards
Lene Fredborg
DocTools – Denmark
www.thedoctools.com
Document automation – add-ins, macros and templates for Microsoft Word
> Hi Bob,
> Yes, you're hundred percent correct; it's just so much easier--and
[quoted text clipped - 53 lines]
> > >>> not carried over.
> > >>> Is there anyone out there that has such a macro and is willing to share it?
Suzanne S. Barnhill - 27 Dec 2006 13:37 GMT
Displaying text boundaries makes text boxes easier to see as well.

Signature
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> Hi Bob,
> Yes, you're hundred percent correct; it's just so much easier--and
[quoted text clipped - 42 lines]
> > >> layer. If this is the case, I think that the macro found via the link below
> > >> is what you are looking for:
http://wordtips.vitalnews.com/Pages/T1447_Searching_for_Floating_Graphics.htm>>
> > l
> > >>
[quoted text clipped - 5 lines]
> > >>> not carried over.
> > >>> Is there anyone out there that has such a macro and is willing to share it?