polps 1 Posted April 16, 2012 Hello all,I am writing a little script to open a word document, copy some text in a table and write the text in other documents.To do so, I'm translating a word macro in autoit and I have a problem with the last statement (in bold)I want simply find a text and move the cursor beside in the right cell. $objSelection = $objWord.Selection $objSelection.Find.Text = "Identifier" $objSelection.Find.Execute $objSelection.MoveRight Unit:=wdCellCan anyone help me? Share this post Link to post Share on other sites
water 2,365 Posted April 16, 2012 (edited) Global $wdCell = 12 $objSelection.MoveRight($wdCell)Units according to MSDN.MoveRight method for Word 2007 can be found here. Edited April 16, 2012 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites