Adding table

S

Sasa

How to add table at the position of cursor?
Some example would be useful.
Thanks.

Regards.
Sasa
 
P

Peter Hewett

Hi Sasa

As in my reply to your earlier post start by starting the macro recorder and
then insert a table from Words menu. Turn of the macro recorder and check out
the code that Word generated. It's normally something like this:

ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=10, _
NumColumns :=4, DefaultTableBehavior:=wdWord9TableBehavior, _
AutoFitBehavior:= wdAutoFitFixed

Also check out the following URL for more information:
http://word.mvps.org/FAQs/TblsFldsFms/TableBasics.htm

HTH + Cheers - Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top