allcaps question, table elimination question

F

filo666

I have a non formated text , I want to tell word that if the first word of a
paragraph is writen in capital letters then add to an array the whole
paragraph, the problem is that the myrange.words(1).font.allcaps = true does
not work because is unformated text.

also

there is a way to eliminate ALL the tables form a word document (I have
hundreds of them and also betwen them I have plain text), I downloaded
several internet pages and I need the bold letters but not the tables

please help because I have no idea of wath to do

TIA
 
D

Doug Robbins - Word MVP

For the capitals issue, you could check that each of the letters in the
first word in the range lie within the ASCII range for uppercase characters.

To delete the tables, use

Dim i As Long
With ActiveDocument
For i = .Tables.Count To 1 Step -1
.Tables(i).Delete
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
Top