Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Multiple VBAProjects in Excel File

Can I create multiple VBAProjects in an Excel Workbook?
If so, how?

I want to distribute an Excel Workbook with a lot of VBA
code. Most of the VBA code will be in a locked
VBAProject so the user can use it but cannot see it.

I want to provide sample VBA code in an unprotected
project which the user can customize. For example,
customize the contents and format of a report.

Can I create multiple VBAProjects in an Excel Workbook
and specify whether each project is locked or open?

I've been able to do this ad hoc by creating a sample.xla
addin. The user then has to explicitly save the
sample.xla project whenever he makes changes, this
creates another disk file which the user needs to worry
about. I'd much rather have the multiple VBAProjects
stored in a single excel file and saved in a single
operation if possible.

Please submit alternative solutions if you have a better
method for providing locked and open code to users. A
high usage requirement is simplicity.

thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Multiple VBAProjects in Excel File


wrote in message
...
Can I create multiple VBAProjects in an Excel Workbook?


Not as far as I know but if you are using Office 2000 or higher
you coulddevelop your code in a com add-in

If so, how?

I want to distribute an Excel Workbook with a lot of VBA
code. Most of the VBA code will be in a locked
VBAProject so the user can use it but cannot see it.

I want to provide sample VBA code in an unprotected
project which the user can customize. For example,
customize the contents and format of a report.

Can I create multiple VBAProjects in an Excel Workbook
and specify whether each project is locked or open?


No and plase note that the VBA lock isnt very secure

I've been able to do this ad hoc by creating a sample.xla
addin. The user then has to explicitly save the
sample.xla project whenever he makes changes, this
creates another disk file which the user needs to worry
about. I'd much rather have the multiple VBAProjects
stored in a single excel file and saved in a single
operation if possible.

Please submit alternative solutions if you have a better
method for providing locked and open code to users. A
high usage requirement is simplicity.


Export the sample code module as a .bas fileand let the user
import it it into his own workbook. You really
dont want users messing with your add-in, if nothing
else suppport becomes impossible.


Keith


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Multiple VBAProjects in Excel File


Thanks for the suggestions. So far the best approach
I've found is to create a "sample.xla" addin file and
include this with the distribution kit. The sample
VBAProject will be unprotected so the user can modify it.
The user must explicitly save the sample.xla file if he
makes any changes in the VBA editor.


-----Original Message-----

wrote in message
...
Can I create multiple VBAProjects in an Excel Workbook?


Not as far as I know but if you are using Office 2000 or

higher
you coulddevelop your code in a com add-in

If so, how?

I want to distribute an Excel Workbook with a lot of

VBA
code. Most of the VBA code will be in a locked
VBAProject so the user can use it but cannot see it.

I want to provide sample VBA code in an unprotected
project which the user can customize. For example,
customize the contents and format of a report.

Can I create multiple VBAProjects in an Excel Workbook
and specify whether each project is locked or open?


No and plase note that the VBA lock isnt very secure

I've been able to do this ad hoc by creating a

sample.xla
addin. The user then has to explicitly save the
sample.xla project whenever he makes changes, this
creates another disk file which the user needs to worry
about. I'd much rather have the multiple VBAProjects
stored in a single excel file and saved in a single
operation if possible.

Please submit alternative solutions if you have a

better
method for providing locked and open code to users. A
high usage requirement is simplicity.


Export the sample code module as a .bas fileand let the

user
import it it into his own workbook. You really
dont want users messing with your add-in, if nothing
else suppport becomes impossible.


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
Multiple user excel file Nithin New Users to Excel 1 August 14th 08 05:59 AM
Multiple accessing of an excel file [email protected] Excel Discussion (Misc queries) 5 February 26th 06 06:56 PM
combine multiple excel file in to one excel file and multiple worksheet jbhoop Excel Discussion (Misc queries) 1 December 30th 05 09:31 PM
combine multiple excel file in to one excel file and multiple worksheet jbhoop Excel Discussion (Misc queries) 0 December 29th 05 04:59 PM
Unprotect VBAProjects using VBA Marcus[Sweden] Excel Programming 3 November 19th 03 02:45 PM


All times are GMT +1. The time now is 06:26 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"