randallc Posted March 9, 2008 Posted March 9, 2008 Hi, Has someone a quick demo of inserting Array 2D into a table [ie start a new table] in a Word doc? I know this can be easy in Excel, but there doesn't seem to be an answer in Word.au3? Specifically, i need to put it at start of a footer, autosize clumns, and 4 cols...! ; but the details later, if I canjust get started... Thanks, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
randallc Posted March 9, 2008 Author Posted March 9, 2008 btw, best I can do is; _Array2DToArStrings ($aItems2D, $aItems) $sSysListView = StringReplace(_ArrayToString($aItems, @CRLF), "|", @TAB) $oApplication.Visible = False $oApplication.Selection.HomeKey ($wdStory) $oApplication.Selection.InsertBefore ($sSysListView) $oApplication.Run("TemplateProject.EditSelectAll.MAIN") With $oApplication.Selection.Font .Name = "Arial" .Size = 6 EndWith Local $wdLine = 5, $wdSeparateByTabs = 1, $wdAutoFitBehavior = 1;0;1,2 $oApplication.Selection.ConvertToTable ($wdSeparateByTabs, Default, Default, Default, Default, Default, Default, Default, Default, Default, Default, Default, Default, $wdAutoFitBehavior, $wdAutoFitBehavior, $wdAutoFitBehavior)But therer is a beter way? Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now