Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I prevent users from deleting an Excel toolbar from a work

I've written some VBA code that creates a custom toolbar within an Excel 2000
workbook when it is opened. I would like to protect the toolbar so that it
can't be deleted, but don't see anything that will work. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default How can I prevent users from deleting an Excel toolbar from a work

Bill,

Here is a suggestion...

Set MyCustomToolBar = Application.CommandBars.Add(...
MyCustomToolBar.Protection = msoBarNoCustomize

This doesn't hurt either...
Application.CommandBars("Toolbar List").Enabled = False
(Reset this on closing the workbook)

Regards,
Jim Cone
San Francisco, USA

"BillBreck" wrote in message ...
I've written some VBA code that creates a custom toolbar within an Excel 2000
workbook when it is opened. I would like to protect the toolbar so that it
can't be deleted, but don't see anything that will work. Any suggestions?

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
protect cells in excel to prevent users from deleting formulae locking cells in excel Excel Discussion (Misc queries) 2 June 14th 06 05:56 PM
How can I prevent users from linking to other sources in Excel? Zuni Excel Worksheet Functions 2 March 6th 06 06:51 PM
prevent users from overwriting other users data [email protected] Excel Worksheet Functions 0 April 17th 05 08:18 PM
Help - Automating a file.. Adding Users , Deleting users, Changing Tim Harding Excel Worksheet Functions 0 March 16th 05 01:25 PM
prevent users from deleting columns Frank Kabel Excel Programming 3 May 14th 04 08:42 PM


All times are GMT +1. The time now is 09:00 PM.

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"