![]() |
#7
|
||||
|
||||
![]()
If you're repurposing a command, the callback procedure declaration has to be slightly different, so that you can specify whether to allow the default action to run too:
Code:
Sub cbDoProtectSheetRepurpose(control As IRibbonControl, ByRef cancelDefault) cancelDefault = True doProtectSheet End Sub |
Tags |
excel vba, ribbon control, sheet status |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pass Arguments to Function Through Ribbon | inagalaxyfarfarawry | Word VBA | 11 | 03-25-2022 09:28 PM |
![]() |
ernief | Excel Programming | 2 | 11-18-2016 03:35 AM |
![]() |
Stewie840 | Word VBA | 14 | 12-17-2015 10:13 PM |
![]() |
kawtharz | Word VBA | 5 | 08-21-2015 12:50 AM |
Autoexpand Table on Protected Sheet | Catalin.B | Excel | 0 | 09-07-2014 07:03 AM |