Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error in Macro 2003
Hi
I have recorded a macro to define certain columns that a user can edit within a range of a protected worksheet,, but the line keeps giving me an error at the protection line (marked below with an asterisk) - Runtime error '1004' Application-defined or object-defined error My Macro looks like this... ' editranges Macro Sheets("Rep 1").Select Range("A1").Select *** ActiveSheet.Protection.alloweditranges.Add Title:="editranges", Range:= _ Range("E:E,G:G,K:K,M:M,O:O,Q:Q,S:S,T:T") ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _ , AllowFormattingColumns:=True, AllowFormattingRows:=True, AllowSorting:= _ True, AllowFiltering:=True ActiveSheet.EnableSelection = xlNoRestrictions Range("A1").Select End Sub Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA Error in Excel 2003 | Excel Discussion (Misc queries) | |||
Macro error after switching from Excel 2000 to Excel 2003 | Excel Discussion (Misc queries) | |||
error in excel 2003 | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) |