Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Can an Excel macro be converted into a VBdotnet Windows application?

Can an Excel macro be converted into a VBdotnet Windows
application?

Thanks in advance,

Mirsten Choiple




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Can an Excel macro be converted into a VBdotnet Windows application?

Indirectly yes, providing you're talking about just automating Excel (think
of it as remote controlling Excel). If you want to start from scratch and
simulate a spreadsheet environment without Excel being on the PC itself then
this will prove extremelly difficult.

The macro code itself will have a direct equievlent in VB.NET. That's the
easy part.

What you'll need to do will involve driving Excel (using VB.NET) through
automation. I may be wrong but the fact you are asking this question
suggests you do not have the knowledge (just now) to make this work. With
that in mind you'll need to look for information on automating Excel through
VB & COM. .NET adds something new to the mix but I'll ignore that for the
moment.

Check back at my site in a few days and I'll stick up an article on this as
a few people have asked me the same thing now.


--
Regards,


Bill Lunney
www.billlunney.com

"Mirsten Choiple" wrote in message
...
Can an Excel macro be converted into a VBdotnet Windows
application?

Thanks in advance,

Mirsten Choiple






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Can an Excel macro be converted into a VBdotnet Windows application?


"Mirsten Choiple" wrote in message
...
Can an Excel macro be converted into a VBdotnet Windows
application?

Thanks in advance,

Mirsten Choiple


The routines - yes

The code modules can be largely just imported but you
should note there are some changes between VBA and
..Net

For example there are no variants in .net and the handling of
arrays is somewhat different.

Importing forms is also possible but you are better off rebuilding them
using the .net tools.

The actual Spreadsheet functionallity still requires Excel
you can build a compiled .net addin to replace the VBA routines.

Keith


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
Running a macro from windows application Aerojade Excel Discussion (Misc queries) 1 October 3rd 08 01:19 PM
can i record a macro from excel to invvoke another windows application anil Excel Discussion (Misc queries) 2 March 30th 07 01:04 PM
Windows application error message Tony Tong Excel Discussion (Misc queries) 0 September 15th 06 07:30 AM
separate application windows JC Excel Discussion (Misc queries) 0 June 29th 06 02:21 PM
How to keep userform always on the top of all windows application JAtz_DA_WAY Excel Discussion (Misc queries) 1 August 31st 05 01:29 AM


All times are GMT +1. The time now is 12:32 PM.

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"