Bob

Bob

  • NA
  • 2
  • 0

Word Macro

Jun 15 2006 3:14 PM
I am trying to convert the following VB (I know, sorry it's not C) from a Word Macro into C#. All I want to do is open a blank Word Document and insert files from various directories, however, I have not found that conversion easy when viewing the VBA code. Here it is, thanks: Sub Macro5() ChangeFileOpenDirectory "C:\Documents and Settings\bob\Desktop\" Selection.InsertFile FileName:="dummy1.doc", Range:="", ConfirmConversions _ :=False, Link:=False, Attachment:=False Selection.InsertFile FileName:="dummy2.doc", Range:="", ConfirmConversions _ :=False, Link:=False, Attachment:=False End Sub