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 / April 2006

Tip: Looking for answers? Try searching our database.

Canmacros help me?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jay - 18 Apr 2006 12:15 GMT
I have a large document which has embedded in it many single cell tables
containing text.  I want to find these tables, select the embedded text,
change the color of the font, cut the text, delete the tables, and then paste
the text into the document at the same point.

I have been doing this exercise in frustration for some days and realize
there must be a better way.  I use a combination of mouse and keyboard to
perform the manual commands.  I never have used macros.  I could use some
help.
Dave Lett - 18 Apr 2006 12:24 GMT
Hi Jay,

I think you can use something like the following:

Dim iTbl As Integer
For iTbl = ActiveDocument.Tables.Count To 1 Step -1
   With ActiveDocument.Tables(iTbl)
       If .Columns.Count = 1 And .Rows.Count = 1 Then
           .Range.Font.Color = wdColorRed
           .ConvertToText Separator:=""
       End If
   End With
Next iTbl

HTH,
Dave

>I have a large document which has embedded in it many single cell tables
> containing text.  I want to find these tables, select the embedded text,
[quoted text clipped - 6 lines]
> perform the manual commands.  I never have used macros.  I could use some
> help.
jay - 19 Apr 2006 05:36 GMT
This will sond stupid, but I never used a macro in Word.  My only experience
was in Lotus WordPro years ago.  I need some help n how to use the code.

> Hi Jay,
>
[quoted text clipped - 23 lines]
> > perform the manual commands.  I never have used macros.  I could use some
> > help.
Dave Lett - 19 Apr 2006 12:16 GMT
Hi Jay,

Have a look at the article "What do I do with macros sent to me by other
newsgroup readers to help me out?" at
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm

HTH,
Dave

> This will sond stupid, but I never used a macro in Word.  My only
> experience
[quoted text clipped - 31 lines]
>> > some
>> > help.
jay - 22 Apr 2006 11:10 GMT
How can I learn more about creating and using macros?  Where do I go?

> Hi Jay,
>
[quoted text clipped - 40 lines]
> >> > some
> >> > help.
Charles Kenyon - 23 Apr 2006 04:35 GMT
Did you go to the article Dave Lett gave you?

Follow the links in that article and you'll open up a library of
information.
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> How can I learn more about creating and using macros?  Where do I go?
>
[quoted text clipped - 46 lines]
>> >> > some
>> >> > help.
 
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.