Hi,
How would i do this i've tried this but it displays a 'Wrong Number of arguments error'
Code:
.ActiveDocument.Tables.Add NumRows:=2, NumColumns:= _ 2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed
Thanks
Hi,
How would i do this i've tried this but it displays a 'Wrong Number of arguments error'
Code:
.ActiveDocument.Tables.Add NumRows:=2, NumColumns:= _ 2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed
Thanks
Cross posted in Excel forum this site:
http://www.vbaexpress.com/forum/showthread.php?t=12513
Jonn,
you should at least tell them you have posted elswhere to keep folks from duplicating solutions that have already been posted. Please read this.
Steve
"Nearly all men can stand adversity, but if you want to test a man's character, give him power."
-Abraham Lincoln
I answered this in the Excel post. It is a syntax error. One underscore character is in the wrong place, and another should not be there at all.