PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Disabling "group edit" mode in Excel

 
 
sundarvenkata
Guest
Posts: n/a
 
      18th Mar 2009
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
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      18th Mar 2009
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" <(E-Mail Removed)> wrote in message
news:b92c23b7-7c34-4a45-9ca9-(E-Mail Removed)...
> 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



 
Reply With Quote
 
sundarvenkata
Guest
Posts: n/a
 
      18th Mar 2009
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
 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      18th Mar 2009
Sundar,

You can use application events:

http://www.cpearson.com/excel/AppEvent.aspx

HTH,
Bernie
MS Excel MVP


"sundarvenkata" <(E-Mail Removed)> wrote in message
news:7fd881a0-e98e-4dae-892e-(E-Mail Removed)...
> 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



 
Reply With Quote
 
sundarvenkata
Guest
Posts: n/a
 
      18th Mar 2009
Hi Bernie,

I cannot thank you enough for your help!

Thanks,
Sundar
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Basics 1 6th Nov 2007 08:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Customization 1 6th Nov 2007 08:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP General 1 6th Nov 2007 08:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Help 1 6th Nov 2007 08:48 AM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP New Users 1 6th Nov 2007 08:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.