Microsoft word's macros & C#

Status
Not open for further replies.

dragonight_x

Member level 4
Joined
Mar 25, 2006
Messages
71
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Egypt - Cairo
Activity points
1,667
word macros in c#

Hello everyone,
My question has two parts:

Part1: It is regarding the macros of the Microsoft word, how can I make a function like macro? In other words a macro that has an argument or a macro that I can pass a parameter to?
Note: macros are written in VB.

Part2: Using C# how can I call that macro and pass a parameter to it?

Thanks for your help in advance.
 

read ms word macro from c#

sure u can do,

u can either do the following for e.g

Sub macroName (aString As string)

'Macro Body

End Sub

or u may replace the word Sub with Function, it is the same

to call the macro from C#

please follow the following link

**broken link removed**
 

    dragonight_x

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…