PC Review


Reply
Thread Tools Rate Thread

Can I Share a MDE (which only has VBA Code) with other apps?

 
 
G
Guest
Posts: n/a
 
      1st Jun 2010
I am using Access 2003, and I was thinking of creating a databe with just VBA
code in modules. There will be functions in there that I would like to
reference with other applications.

Is it possible for me to reference some of the functions in the MDE database
with Excel and use the function I was created in the MDE ???


Thanks,

G
 
Reply With Quote
 
 
 
 
david
Guest
Posts: n/a
 
      2nd Jun 2010
You can't reference an MDE from Excel

Unfortunately, the VBA project is stored inside a database in a
special format known only to Access, and Excel can't get it out.

The obvious solution would be to move your shared code to
an ActiveX control built in VB5 or VB6, so that it could be
shared by Access or Excel. Unfortunately, MS has discontinued
VB5 and VB6, and there is no replacement product.

There are some stupid work arounds -- you could rewrite
as VB Script, then use a VB Script wrapper to get a COM
object that you could register and use in Excel and Access --
but that would generally be more work than just re-writing
and copying the code between Access and Excel.

For special purposes, you can create an Access Application
object in Excel VBA, and use Excel VBA to control Access
to use your MDE code, but that is only when you particularly
want to use Access, Excel, and your Data at the same time--
it's not generally a good solution for just sharing code, because
starting a copy of Access just to use some shared code is
generally too slow and flaky.

(david)


"G" <(E-Mail Removed)> wrote in message
news:CB8D35D1-EE3C-4577-95F6-(E-Mail Removed)...
>I am using Access 2003, and I was thinking of creating a databe with just
>VBA
> code in modules. There will be functions in there that I would like to
> reference with other applications.
>
> Is it possible for me to reference some of the functions in the MDE
> database
> with Excel and use the function I was created in the MDE ???
>
>
> Thanks,
>
> G



 
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
how to share user controls across apps dx Microsoft ASP .NET 4 8th Jan 2005 04:49 PM
New network, can I share Office apps? UpRider Windows XP Networking 1 5th Nov 2004 10:28 PM
Share config between sub web apps Martin Microsoft ASP .NET 1 11th Jul 2004 04:42 AM
Share Web dialogs between apps arkam Microsoft ASP .NET 0 15th Apr 2004 08:22 AM
Share apps in dual boot? Rick Lee Windows XP Setup 5 14th Aug 2003 11:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:13 PM.