Additional Piece,
The line of code that is erroring is 'Set tbl2 =
ActiveDocument.Tables.Add(tbl.Cell(rowCounter, 1).Range, 1, 5)
The preceeding line is set tbl =
ActiveDocument.Tables.Add(ActiveDocument.Bookmarks("wdStart").Range, 2, 1)
> I receive the following error message 'Run-time error 4605; This command is
> not available.
[quoted text clipped - 10 lines]
> Thanks,
> Jay Bukstein
Ed - 07 Mar 2007 19:14 GMT
Hi Jay,
Those lines of code seemed to work for me (using Word 2003).
When I have seen 4605 errors in the past they usually had a bit more
information after the "This command is not available" part and it was usually
that extra information that gave a clue as to what the problem was. (E.g.
"This command is not available because the object refers to a protected area
of the document" or whatever.)
If that is the case with your problem, can you post the remainder of the
message and maybe also more of the code and then someone might be able to
advise as to what's going on?
Cheers.
Ed
> Additional Piece,
>
[quoted text clipped - 20 lines]
> > Thanks,
> > Jay Bukstein