TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chetan Allipur
NA
541
166.9k
How to get the value by passing the string to method.
Jun 6 2017 8:33 AM
How to get the value by passing the string to method using word VSTO.
I have VBA Code here
Dim sTemp As String
sTemp = sGetDocVar("CTDPrefix")
method here
Function sGetDocVar(ByVal sVName As String) As String
On Error GoTo sGetDocVar_ERROR
sGetDocVar = ActiveDocument.Variables(sVName).Value
Exit Function
sGetDocVar_ERROR:
Select Case Err.Number
Case 5825 'Variable does not exist
sGetDocVar = vbNullString
Case Else
Const sProcedure As String = "sGetDocVar"
End Select
End Function
Please tell me in c# using word VSTO. Please anybody help me its urgent.
Reply
Answers (
1
)
How should be the Resource Names?
Software license key and activation in Windows Application