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


Hi,

Refers to Microsoft Excel 2000.

Within my VBA Code I am using the following to disable th
CommandBars:

'Ensure the user cannot access any of the Toolbars
For Each bar In Application.CommandBars
bar.Visible = False
Next

However the user, when in Excel can right click and choos
Customization and put the CommandBars back. Is there any way I ca
prevent this happening.

TIA
Mar

--
msippit
-----------------------------------------------------------------------
msippitt's Profile: http://www.excelforum.com/member.php...fo&userid=1639
View this thread: http://www.excelforum.com/showthread.php?threadid=27765

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Preventing Customization


I'm NO fan of tampering with the users UI.

But if you have to:

use enabled property not the visible property.

it'll achieve what you want AND you can simply enable
all commandbars at the end of your code.
(the user gets his original toolbars back ,with correct positions and
correct visibility)






--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


msippitt wrote :


Hi,

Refers to Microsoft Excel 2000.

Within my VBA Code I am using the following to disable the
CommandBars:

'Ensure the user cannot access any of the Toolbars
For Each bar In Application.CommandBars
bar.Visible = False
Next

However the user, when in Excel can right click and choose
Customization and put the CommandBars back. Is there any way I can
prevent this happening.

TIA
Mark

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
QAT does not allow enough room for customization - please help Chris D.[_2_] Excel Discussion (Misc queries) 2 April 20th 10 02:28 PM
Advanced customization of charts? Marcus Ahlbäck Excel Discussion (Misc queries) 6 March 25th 07 12:19 AM
Preserving customization donbowyer Setting up and Configuration of Excel 1 February 9th 06 09:52 AM
Toolbar customization Dave Peterson[_3_] Excel Programming 0 July 31st 03 04:24 AM
Toolbar customization KB Excel Programming 0 July 30th 03 09:13 PM


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