chetan Allipur

chetan Allipur

  • NA
  • 541
  • 167.7k

Convert it to equivalent to c#

Jul 7 2017 3:19 AM
How to convert to c#. I tried in online convert it is not working.
 
For Each myTOC In ActiveDocument.TablesOfContents
If InStr(myTOC.Range.Text, "1-") > 1 Then
cmbhlevels.Enabled = False
cbxTOC.Enabled = False
cbxtocindent.Enabled = False
End If
If InStr(myTOC.Range.Text, "Table,") > 1 Then
cbxTOT.Enabled = False
End If
If InStr(myTOC.Range.Text, "Figure,") > 1 Then
cbxTOF.Enabled = False
End If
If InStr(UCase(myTOC.Range.Text), "APPENDIX") > 1 Then
cbxTOA.Enabled = False
End If
Next myTOC
 

Answers (4)