0 Replies Latest reply: May 6, 2013 5:09 AM by Zhou Dz RSS

    How to make the macro code into C# when using OCX?

    Zhou Dz

      Hi,

       

      I use macro show the chart line,
      macro:
      set myobj = ActiveDocument.GetSheetObject("CH241")
      prop = myobj.GetProperties
      set expr = prop.Expressions.Item(1).Item(0).Data.ExpressionData
      expr.Enable = true

       

      My question is  How to make the macro code into C# when using OCX?

       

      Thank you