| 发表于:2007-10-15 14:08:09 楼主 |
sub macro1() ' ' macro1 macro ' 宏由 user 录制,时间: 2006-10-15 ' ' thisworkbook.worksheets("sheet1").protection.alloweditranges.add title:="区域1", range:=range( _ "b6:k19"), password:="12" '该处出现错误 activesheet.protect drawingobjects:=true, contents:=true, scenarios:=true end sub 以上是我录制的宏,可是在执行的时候却出现错误: 应用程序定义或对象定义错误。这可是我亲手录制的怎么会有错误呢?试了好多帮个忙呀! |
|
|
|
|