A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Common VBA procedure library



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 19th 08, 02:11 AM posted to microsoft.public.outlook.program_vba
Tony29
external usenet poster
 
Posts: 5
Default Common VBA procedure library

I have VBA code in Outlook, Access and Excel which have calls to procedures
which are in fact common across all of these applications. I can put the
common procedures into an .xla so that they are available to .xls workbooks,
but how do I put them into a single repository so that they are avaiable to
any application?

Thanks in advance
Ads
  #2  
Old February 19th 08, 02:16 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Common VBA procedure library

The only clean way I can think of to do that would be to compile the
procedures into a DLL and load the DLL and call it's exposed methods. Of
course then it's no longer VBA code. Other than that you'd have to load the
workbook with the code and call it from there

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony29" wrote in message
news
I have VBA code in Outlook, Access and Excel which have calls to procedures
which are in fact common across all of these applications. I can put the
common procedures into an .xla so that they are available to .xls
workbooks,
but how do I put them into a single repository so that they are avaiable
to
any application?

Thanks in advance


  #3  
Old February 20th 08, 02:37 AM posted to microsoft.public.outlook.program_vba
Tony29
external usenet poster
 
Posts: 5
Default Common VBA procedure library

Forgetting the .dll suggestion for the moment ... are you saying, for example
that if I use an .xls which I save as an .xla and use this as the
'repository' of common procedures, that I could from within Outlook VBA make
a foreign reference to those .xla procedures (in much the same way as any
other .xls can make a foreign reference to those procedures ? If so, could
you explain how?

or is it a case of 'invoking' an instance of the .xla from within the
Outlook VBA?

If not, I don't understand the implications of your suggestion and I wonder
if you could elaborate.

Thanks

"Ken Slovak - [MVP - Outlook]" wrote:

The only clean way I can think of to do that would be to compile the
procedures into a DLL and load the DLL and call it's exposed methods. Of
course then it's no longer VBA code. Other than that you'd have to load the
workbook with the code and call it from there

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony29" wrote in message
news
I have VBA code in Outlook, Access and Excel which have calls to procedures
which are in fact common across all of these applications. I can put the
common procedures into an .xla so that they are available to .xls
workbooks,
but how do I put them into a single repository so that they are avaiable
to
any application?

Thanks in advance



  #4  
Old February 20th 08, 02:35 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Common VBA procedure library

It would be invoking an instance of the xla, if that's possible, from
Outlook or whatever other app the code is in. Whether or not that would work
I don't know, that's a question for an Excel group.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony29" wrote in message
...
Forgetting the .dll suggestion for the moment ... are you saying, for
example
that if I use an .xls which I save as an .xla and use this as the
'repository' of common procedures, that I could from within Outlook VBA
make
a foreign reference to those .xla procedures (in much the same way as any
other .xls can make a foreign reference to those procedures ? If so, could
you explain how?

or is it a case of 'invoking' an instance of the .xla from within the
Outlook VBA?

If not, I don't understand the implications of your suggestion and I
wonder
if you could elaborate.

Thanks


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with AddRecipToContacts procedure by Sue Mosher Richard T Outlook and VBA 6 June 2nd 07 02:48 PM
Getting a procedure error in Calendar Joyce Outlook - Calandaring 1 March 22nd 07 09:47 AM
Assign shortcut key to VBA procedure F.H. van Zelm Outlook - General Queries 3 September 26th 06 03:43 PM
Procedure for Drafts folder DSG Outlook Express 5 July 15th 06 06:49 PM
Message Rule Does Not Run VBA Procedure Lowell Outlook and VBA 18 March 9th 06 06:47 PM


All times are GMT +1. The time now is 07:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.