PC Review


Reply
Thread Tools Rate Thread

Creating COM Objects or Add-Ins from VBA

 
 
=?Utf-8?B?SmltUldS?=
Guest
Posts: n/a
 
      31st Oct 2007
Hi.

I have a VBA project (Excel 2000) with 11 forms and close to 200 separate
modules (I've maintained a 1:1 relationship between modules and procedures).
I've used public variables, with a couple of exceptions. This application
manipulates PivotTables in order to report out to the user.

I want to be able to compile the code without losing the functionality of
Excel, hence my desire to create a COM add-in.

I've studied various postings in this newsgroup, and sense that
transitioning the code from VBA to VB might be the way to go. Any ideas,
books or resources you'd recommend?

TIA,

Jim

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      31st Oct 2007
I have several pages related to writing COM Add-Ins using VB6. Start at

http://www.cpearson.com/Excel/CreatingCOMAddIn.aspx

Note that while the code will transfer rather simply, the matter of forms is
different. There is no way to convert a VBA UserForm to VB6 Form. You can
include a UserForm as a Designer, but that is not really a good way to go.
You'd really have to recreate the forms in VB.


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

"JimRWR" <(E-Mail Removed)> wrote in message
news:FC6581C3-DACA-4C78-9228-(E-Mail Removed)...
> Hi.
>
> I have a VBA project (Excel 2000) with 11 forms and close to 200 separate
> modules (I've maintained a 1:1 relationship between modules and
> procedures).
> I've used public variables, with a couple of exceptions. This application
> manipulates PivotTables in order to report out to the user.
>
> I want to be able to compile the code without losing the functionality of
> Excel, hence my desire to create a COM add-in.
>
> I've studied various postings in this newsgroup, and sense that
> transitioning the code from VBA to VB might be the way to go. Any ideas,
> books or resources you'd recommend?
>
> TIA,
>
> Jim
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating COM objects in C# Dan Holmes Microsoft C# .NET 1 30th Jan 2008 06:15 PM
Re: Creating COM objects Willy Denoyette [MVP] Microsoft C# .NET 0 6th Jul 2004 10:38 AM
Re: Creating COM objects Mark Broadbent Microsoft C# .NET 0 4th Jul 2004 02:37 PM
Creating COM objects with VB.NET Al Microsoft VB .NET 1 24th Feb 2004 06:42 PM
Creating objects Simonc Microsoft Access Getting Started 1 20th Nov 2003 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 AM.