Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: macros VBA Word
Hi Guys,
 
I created an MS Word 2007 Addin and i want to convert it to a Macro, is there any facility to convert it to a macro?
 
Can i install the Addin to a selected Word Doc and not to all the word docs? If it can be done, please tell me the way to get that done?
 
Thanks in advance.
 
Regards,
Srinivas
Posted 14-Apr-11 1:45am
Edited 14-Apr-11 2:09am
Slacker00775.8K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What language did you create your Addin in? There is no way that I know of to easily convert VB.Net or C# to a VBA macro. You will have to do it line by line. I don't think you can install the addin to an individual Word doc. You install the addin to MS Word itself not to an individual .docx file.
 
If you want the feature to only run in one doc file then use a macro. Macros and Addins are two separate entities.
 
HTH. Good luck.
  Permalink  
Comments
Srinivas39 at 14-Apr-11 6:57am
   
Thank you for your reply, I used C# to create the Addin, Dont we have any solution to convert C# to VBA Macro? I dont know VBA, and i added all the functionality in the Addin and want that to be converted to Macro? can you please help me with a solution :(
Slacker007 at 14-Apr-11 7:03am
   
Well, I can't write the VBA macro for you. I know how to write macros so I am here to help you as much as I can. There is no "magick" utility that I know of that converts C# to VBA. There is a million websites and resources that can give you an idea on how to write VBA. If you can write C# then I am sure you can learn VBA. The fundamentals are pretty much the same...C# is better of course :)
 
Just let me know how I can help. Remember, I am helping you not doing the work for you. :)
Srinivas39 at 14-Apr-11 7:15am
   
Okay Slacker, thank you, I'm just trying to find any convertions available from Net, you are right ofcourse :), any ways, let me try how i can use VBA here to fulfill my needs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 14 Apr 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100