Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Lock Columns
Hello,
I want to permanently lock columns S:W on my sheet using VBA. I do NOT want to write a macro. I need it in the following format. Thanks. Private Sub Worksheet_Change(ByVal Target As Range) (code) End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Lock Columns
You say you don't want to write a macro, then show a macro declaration for
the change event. Also, you say permanently - so why do you want it in the change event (a macro). Mark all the cells in that range as locked, then protect the sheet with a password. -- Regards, Tom Ogilvy "DukeDevil" wrote: Hello, I want to permanently lock columns S:W on my sheet using VBA. I do NOT want to write a macro. I need it in the following format. Thanks. Private Sub Worksheet_Change(ByVal Target As Range) (code) End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Lock Columns
What you say is nonsensical. You want to do it using VBA but NOT using a
macro. You can't use VBA without writing a macro (or UDF). Also the format you give is a macro in itself. You say you want to "lock columns S:W". Exactly what do you want to do? In other words, what does "lock columns" mean to you? HTH Otto "DukeDevil" wrote in message ps.com... Hello, I want to permanently lock columns S:W on my sheet using VBA. I do NOT want to write a macro. I need it in the following format. Thanks. Private Sub Worksheet_Change(ByVal Target As Range) (code) End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Lock a row at top for titles of columns? | Excel Discussion (Misc queries) | |||
Can I lock 2 columns together so that the 2 cells in a row are joined? | New Users to Excel | |||
Macro to Lock Columns | Excel Programming | |||
LOCK columns | New Users to Excel | |||
How do I lock hidden columns? | Excel Worksheet Functions |