Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Is there a way to disable the "group edit" mode in Excel completely? Or is it atleast possible to program an add-in that will prevent the user from editing data into any cell while in "group edit" mode? Thanks, Sundar |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sundar,
Put this into the codemodule of the Thisworkbook object: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) If ActiveWindow.SelectedSheets.Count 1 Then With Application .EnableEvents = False .Undo MsgBox "Oh, please don't group the sheets..." ActiveWindow.SelectedSheets(1).Select 'Ungroups .EnableEvents = True End With End If End Sub -- HTH, Bernie MS Excel MVP "sundarvenkata" wrote in message ... Hi All, Is there a way to disable the "group edit" mode in Excel completely? Or is it atleast possible to program an add-in that will prevent the user from editing data into any cell while in "group edit" mode? Thanks, Sundar |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bernie,
Thanks for the help! I was wondering if there is a way I could make this work for any excel file I open instead of just the current "excel" file. Thanks, Sundar |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sundar,
You can use application events: http://www.cpearson.com/excel/AppEvent.aspx HTH, Bernie MS Excel MVP "sundarvenkata" wrote in message ... Hi Bernie, Thanks for the help! I was wondering if there is a way I could make this work for any excel file I open instead of just the current "excel" file. Thanks, Sundar |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bernie,
I cannot thank you enough for your help! Thanks, Sundar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disabling the "&[Time]" or "&[T]" in Excel headers and footers | Excel Discussion (Misc queries) | |||
Disabling the "Design Mode" | Excel Programming | |||
Make "Edit" mode default, rather than "Enter"? | Excel Discussion (Misc queries) | |||
Can never edit my projects, everything is always "read-only mode" | Excel Programming | |||
Solution: How to programmaticaly leave "edit mode" | Excel Programming |