Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Programming Undo
Hi everybody.
I am writing a worksheet_change event and need to effectively put in the code that I describe as "Do not allow change to be entered" Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error Resume Next username = ActiveWorkbook.BuiltinDocumentProperties("Author") If Target.Column = 15 and username < "JoeBloggs" Then Do not allow change to be entered MsgBox ("You are not authorised to change this column") End sub Any ideas or am I completely barking up the wrong tree? Thanks Andy B |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Programming Undo
<ff wrote in message ... Hi everybody. I am writing a worksheet_change event and need to effectively put in the code that I describe as "Do not allow change to be entered" Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error Resume Next username = ActiveWorkbook.BuiltinDocumentProperties("Author") If Target.Column = 15 and username < "JoeBloggs" Then Do not allow change to be entered MsgBox ("You are not authorised to change this column") End sub Any ideas or am I completely barking up the wrong tree? Thanks Andy B Why not just password protect the sheet ? Keith |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
programming help | Excel Discussion (Misc queries) | |||
CD Programming | Excel Discussion (Misc queries) | |||
Programming help | Excel Discussion (Misc queries) | |||
UNDO - how many times can I UNDO? | Excel Worksheet Functions | |||
Why is my undo function in Excel only can undo the last 1 or 2 ch. | Excel Worksheet Functions |