0 Replies Latest reply on May 29, 2014 9:59 PM by wordsmyth_rick

    Word Macros InDesign

    wordsmyth_rick

      I followed all of the steps for using Word to write my scripts for InDesign.  It is a simple macro to go to the start of the line and delete 5 characters.

       

      Sub DeleteFive()

      '

      ' DeleteFive Macro

      '

      '

          Selection.HomeKey Unit:=wdLine

          Selection.Delete Unit:=wdCharacter, Count:=1

          Selection.Delete Unit:=wdCharacter, Count:=1

          Selection.Delete Unit:=wdCharacter, Count:=1

          Selection.Delete Unit:=wdCharacter, Count:=1

          Selection.Delete Unit:=wdCharacter, Count:=1

      End Sub

       

      It crashes when it tries to run the HomeKey line.

       

      Copied it to the folder in InDesign and added the .vbs file extension.

       

      I have a huge ID file I need to reformat and scripts would be a life and finger saver!

       

      Thanks!

      Rick

       

      InDesign CC

      Windows 7

      32 GB Ram