I am assembling a word document and have come unstuck attempting to insert a table.
The inc file has worked fine and I believe the problem is with my code. Below is a code snip showing my code along with a commented copy of the method from the inc file. The result is Word fails and wants to report a fault etc etc
Any pointers much appreciated
Ian B
I guess the PB_xx in the method is because there is a potential conflict with a PB item.
The inc file has worked fine and I believe the problem is with my code. Below is a code snip showing my code along with a commented copy of the method from the inc file. The result is Word fails and wants to report a fault etc etc
Any pointers much appreciated
Ian B
I guess the PB_xx in the method is because there is a potential conflict with a PB item.
Code:
Local oWordTable As Table Local oWordTables As Tables Local oWordRange As Range ' Insert Table oWordRange = oWordsel.Range oWordTable = oWordTables.Add(oWordRange, 3, 3) 'ADD <200> (BYVAL PB_Range AS Range, BYVAL NumRows AS LONG, BYVAL NumColumns AS LONG, OPT BYREF IN DefaultTableBehavior As VARIANT, Opt ByRef In AutoFitBehavior As VARIANT) As Table
Comment