chetan Allipur

chetan Allipur

  • NA
  • 541
  • 167.6k

Please convert it to c#

Jun 23 2017 7:39 AM
I thing InStr is the string members.
 
sHeadingNm = ActiveDocument.Styles(wdStyleHeading1).NameLocal
If sHeadingNm <> "" Then
nPos = InStr(1, sHeadingNm, "1")
If nPos > 0 Then sHeadingNm = Mid(sHeadingNm, 1, nPos - 1)
End If
 
 
please send me soon. 
 

Answers (3)