Reply
 
Thread Tools Display Modes
  #1   Report Post  
Aud
 
Posts: n/a
Default searching text in a table

i'm having a hard time trying to search a table for a certain line of text.
i'm trying to insert a row beneath each row of a table that contains "auto".
i'd appreciated any help.

Thanks!
  #2   Report Post  
Jezebel
 
Posts: n/a
Default

You'll need to provide more info.What sort of hard time?



"Aud" wrote in message
...
i'm having a hard time trying to search a table for a certain line of
text.
i'm trying to insert a row beneath each row of a table that contains
"auto".
i'd appreciated any help.

Thanks!



  #3   Report Post  
Aud
 
Posts: n/a
Default

i'm not sure what function i can use after i locate the cell i want to
search. is there a function to search the contents of a table, can i assign
the contents of a cell to a string?

"Jezebel" wrote:

You'll need to provide more info.What sort of hard time?



"Aud" wrote in message
...
i'm having a hard time trying to search a table for a certain line of
text.
i'm trying to insert a row beneath each row of a table that contains
"auto".
i'd appreciated any help.

Thanks!




  #4   Report Post  
Jezebel
 
Posts: n/a
Default

You can restrict a search to any range of the document, including a table.
If you're working manually, select the table before calling Find. If you're
talking about VBA, provide the table as the Range argument to the Find
object.

Yes, you can assign the content of a cell to a string:

pString = MyTable.Cell(Row, Col).Range

Bear in mind that every table cell terminates with chr(13)chr(7); you might
need to strip these from the end of the string.


"Aud" wrote in message
news
i'm not sure what function i can use after i locate the cell i want to
search. is there a function to search the contents of a table, can i
assign
the contents of a cell to a string?

"Jezebel" wrote:

You'll need to provide more info.What sort of hard time?



"Aud" wrote in message
...
i'm having a hard time trying to search a table for a certain line of
text.
i'm trying to insert a row beneath each row of a table that contains
"auto".
i'd appreciated any help.

Thanks!






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tie Table Numbers to references in the text? Tim Tables 4 May 6th 23 08:49 PM
Table AutoFormats vs. Table Styles confusion Tony Jollans Tables 5 March 6th 05 07:18 PM
Resources for Long Document Management Jason Langkamer-Smith Microsoft Word Help 9 January 17th 05 08:17 PM
Any way to link text with Figure or Table number? Richard Stanford Microsoft Word Help 1 January 4th 05 02:32 PM
Outline Renee Hendershott Page Layout 2 December 25th 04 02:49 PM


All times are GMT +1. The time now is 07:45 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"