how to check macro on word 2007 is enabled or not by c# code
how to check macro on word 2007 is enabled or not by c# code
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Praveen NPosted Dec 23, 2013, 12:22 AM
MS word doesn't contain Macros, beyond this still you can check
here is the code
Sub Demo()
With ActiveDocument
If .HasVBProject Then
'Do Something
Else
'Do Something Else
End If
End With
End Sub
Thanks,
Praveen Nelge