Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how can i run excel/word macro to C# .net programs

i have macro in excel sheet in which data is sorted and some other functions.
i want to use that macro in C# .net
how can i use that.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default how can i run excel/word macro to C# .net programs

What exactly doy ou mean by using the macro in C#.net? Do you want to
activate or run the macro in the Excel workbook from C#, or do you
want to use the functionality of the macro in your C# program?


On Oct 30, 8:04 am, Aaqib wrote:
i have macro in excel sheet in which data is sorted and some other functions.
i want to use that macro in C# .net
how can i use that.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how can i run excel/word macro to C# .net programs

yes, i want both
1) Activate and run the macro in the Excel workbook from C#,
2) Use the functionality of the macro in your C# program?
please answer whatever way you understand instead of re-asking. :(

" wrote:

What exactly doy ou mean by using the macro in C#.net? Do you want to
activate or run the macro in the Excel workbook from C#, or do you
want to use the functionality of the macro in your C# program?


On Oct 30, 8:04 am, Aaqib wrote:
i have macro in excel sheet in which data is sorted and some other functions.
i want to use that macro in C# .net
how can i use that.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default how can i run excel/word macro to C# .net programs

You can use the Run method to run an existing macro. E.g.,

XLAppRef.Run "Book1.xls!TheMacroName"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Aaqib" wrote in message
...
yes, i want both
1) Activate and run the macro in the Excel workbook from C#,
2) Use the functionality of the macro in your C# program?
please answer whatever way you understand instead of re-asking. :(

" wrote:

What exactly doy ou mean by using the macro in C#.net? Do you want to
activate or run the macro in the Excel workbook from C#, or do you
want to use the functionality of the macro in your C# program?


On Oct 30, 8:04 am, Aaqib wrote:
i have macro in excel sheet in which data is sorted and some other
functions.
i want to use that macro in C# .net
how can i use that.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost Excel and Word from our Start/All Programs menu caswb Excel Discussion (Misc queries) 2 April 8th 07 04:42 PM
Calling other programs in Macro praveen_khm[_7_] Excel Programming 0 January 17th 06 02:32 PM
opening different programs with excel macro buttons shrek Excel Worksheet Functions 0 September 30th 05 12:41 PM
Excel macro takes focus from other programs RUL Excel Programming 3 August 9th 05 01:56 PM
Excel VBA - Executing external programs in an excel macro schumacker Excel Programming 1 February 24th 04 12:17 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"