Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Locking project

Hi,
I have an addin which is locked. On a given command the
addin copies a custom worksheet to a new workbook. The
custom worksheet contains some code in the worksheet
object and this is no longer locked. I'd like it be
unavailable to the user, so how can I lock this new VBA
project programmatically?

any help appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Locking project

Send keys is about the only way you could do it. There is no provision to
do this in Excel 2000 and earlier for sure.

Application.VBE.ActiveVBProject.Protection

will return the status, but it is read only.

--
Regards,
Tom Ogilvy


"jacob" wrote in message
...
Hi,
I have an addin which is locked. On a given command the
addin copies a custom worksheet to a new workbook. The
custom worksheet contains some code in the worksheet
object and this is no longer locked. I'd like it be
unavailable to the user, so how can I lock this new VBA
project programmatically?

any help appreciated.



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
row locking, instead of file locking? Bob W Excel Discussion (Misc queries) 2 September 7th 07 09:36 PM
Excell error "Can't find Project or Library" Project VBAProject Lost in Excel Excel Worksheet Functions 0 April 12th 07 04:42 PM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
I pay $ for this project Fred Grange Charts and Charting in Excel 0 December 28th 04 12:41 PM


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