LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cant perform operation since the project is protected

I have two workbooks X & Y. Workbook X references Workbook Y. The VBA Project
in workbook Y is password protected and locked for viewing. In workbook Y on
ThisWorkbook there is a Public Property that creates a new instances of a
class define in Y and returns it. In X I declare a variable of the top level
Class in Y and try to Set my variable to the return value of the Property.
However I get the above error. Is there a way around this?

Do I need to get a digital signature for my code? However, even when I use
the locally generated certificate on my PC, and select that as a trusted
publisher, I still get this error.

Would loading the code as an XLA rather than an XLS make any difference?
Using the XLS provides a handy place to put license information, etc.

I have seen this error crop up when people have been trying to copy macros
out of password protected workbooks, and I can see why Microsoft would want
to prevent that. However, I am trying to run code in a password protected
workbook and I am getting this error. I would have thought that there was no
security risk here, as someone would need to explicitly choose to run my
code, for it to do anything.

I am reluctant to go down the Digitial Certificate route because of the cost
and the need for anyone using this to have to get this installed. I already
distribute an ActiveX version of this code, but the need to get this
installed is a barrier to sales as many IT Depts have locked down desktops
and very rigid and costly installation procedures. The advantage of a macro
is that someone in Finance can use it, without needing to involve IT to
create a standard installation package.

If I do need to go down the digital certificate route, can anyone a
recommend cheaper provider of certificates? Verisign seem to charge several
hundred dollars, and I only make about a $1000 from this a year.
 
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
Is there a function to perform this operation? Ayo Excel Discussion (Misc queries) 2 July 17th 09 03:17 AM
Can't perform requested operation in excel macro John[_19_] Excel Programming 2 March 12th 08 03:54 AM
Connection Cannot Be Used to Perform this Operation alexcn Excel Programming 0 May 8th 07 07:13 PM
Complex Macro to perform an operation as it steps down cells? Jeni Q Excel Worksheet Functions 0 August 25th 05 04:38 PM
microsoft outlook unable to perform operation - send = receive. heibner Excel Discussion (Misc queries) 1 July 13th 05 09:05 AM


All times are GMT +1. The time now is 10:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"