VBA Express Forum  




Go Back   VBA Express Forum > VBA Code & Other Help > Office 2007 Ribbon UI
     Feedback     
Register FAQ Members Arcade Knowledge Base Training Articles Consulting

Reply
 
Thread Tools Display Modes
Old 03-20-2012, 02:49 AM   #1
lalit.purohi

 
Joined: Mar 2012
Posts: 2
Kb Entries: 0
Articles: 0
How to disable Ribbon in Excel 2010

Hi,

Being my first post, hoping for a sound advices from thinking minds on this forum,

I am looking for va code to disable a part of ribbon on excel 2010. for eg : Of the whole ribbon in Excel 2010, on the Cut, Copy, Paste buttons needs to be disabled.

Please do advise with thoughts and suggestions on the same

Thanks in Advance

Local Time: 09:24 AM
Local Date: 05-23-2013
Location:

 
Reply With Quote Top
Old 03-22-2012, 08:59 AM   #2
xld
 
xld's Avatar
Distinguished Lord of VBAX

 
Joined: Apr 2005
Posts: 23,118
Kb Entries: 3
Articles: 2
Even if you disable them, Ctrl-C etc will still work.


____________________________________________
Nihil simul inventum est et perfectum

Abusus non tollit usum

Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber

Local Time: 04:54 AM
Local Date: 05-23-2013
Location:

 
Reply With Quote Top
Old 03-24-2012, 07:25 AM   #3
lalit.purohi

 
Joined: Mar 2012
Posts: 2
Kb Entries: 0
Articles: 0
Hi, i wrote a code where the functions like ctrl+c, ctrl+x,etc gets disabled.. there was only one problem of making the ribbon disable.... looking for some suggestions and help..

Regards,

Local Time: 09:24 AM
Local Date: 05-23-2013
Location:

 
Reply With Quote Top
Old 03-25-2012, 07:43 AM   #4
Paul_Hossler

 
Joined: Apr 2007
Posts: 2,084
Kb Entries: 0
Articles: 0
You can hide the Clipboard group by using XLM and the CustomUI

VBA:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <tabs> <tab idMso="TabHome"> <group idMso="GroupClipboard" visible="false"/> </tab> </tabs> </ribbon> </customUI>
VBA tags courtesy of www.thecodenet.com

but that only works in the individual XLSM unless you make an add in

Paul


Admin edit: The file contains this specified XML code and will hide that portion of the ribbon. Your ribbon state will be returned when you close the file (only for xl2007 onward).
Attached Files To view attachments your post count must be 0 or greater. Your post count is 0 momentarily.

Local Time: 11:54 PM
Local Date: 05-22-2013
Location:

 
Reply With Quote Top
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 08:54 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2012 VBA Express