Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Using the Change Event, how can i stop users inserting columns when the Cellpointer is in column C please? Thanks John |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
John,
I'm not sure about the worksheet_change event but it can be done with the selection_change event by disbaling the insert rows option every time column 3 is the active column:- Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If ActiveCell.Column = 3 Then With Application.CommandBars("Worksheet Menu Bar").Controls("&Insert") .Controls("&Rows").Enabled = False End With Else With Application.CommandBars("Worksheet Menu Bar").Controls("&Insert") .Controls("&Rows").Enabled = True End With End If End Sub Mike "John" wrote: Hi, Using the Change Event, how can i stop users inserting columns when the Cellpointer is in column C please? Thanks John |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
John,
Forgot the righ-click method of insert so add this:- Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) If ActiveCell.Column = 3 Then Cancel = True End Sub Mike "John" wrote: Hi, Using the Change Event, how can i stop users inserting columns when the Cellpointer is in column C please? Thanks John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Go to functionality | Excel Worksheet Functions | |||
DES Encryption functionality | Excel Worksheet Functions | |||
Checkbox functionality | Excel Discussion (Misc queries) | |||
Help with Countrows functionality within a Macro | New Users to Excel | |||
Losing Add-Inn Functionality | Excel Discussion (Misc queries) |