Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Finding a style in table wityh empy cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis S - 18 Jan 2005 13:27 GMT
If there is a table within a WORD docunment, it appears WORD only finds the
style of non-blank cells within a table.  Is there some way to use the "Find"
function (or some other method) to find all occurences of a particular style
within a table, even if the cells are empty.  Using Edit, Find, Style format
only does not work.
Klaus Linke - 28 Jan 2005 15:28 GMT
> If there is a table within a WORD docunment, it appears WORD only finds the
> style of non-blank cells within a table.  Is there some way to use the "Find"
> function (or some other method) to find all occurences of a particular style
> within a table, even if the cells are empty.  Using Edit, Find, Style format
> only does not work.

Hi Dennis,

Yep, the end-of-cell markers are invisible to "Find".

You'd need to loop all cells in the document:

   Dim myTable as Table
   Dim myCell as Cell
   For Each myTable in ActiveDocument.Tables
       For each myCell in myTable.Range.Cells
           ' look at myCell.Range.Style

And even then, it might be difficult to figure out the paragraph style (since
.Style might return an applied character style, table style, or list style).
If you run into difficulties, post back.

Greetings,
Klaus

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.