Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top