Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Unable to set the Locked Property of the Range Class

In trying to solve the problems in my earlier post, I am
disabling addins, one by one, and have hit a problem.

Using Tools Addins I attempt to disable one
particular addin, and when I click OK I receive the
above error. Debug takes me to this sequence:

ElseIf (.Name = "SUMMARY" Or .Name = _
"GENERAL SUMMARY" Or .Name = "COVER" Or _
.Name = "CONTENTS") Then
.Select
.Unprotect
.Cells.Locked = False
ActiveSheet.UsedRange.Columns("A:G").Locked = True
Set myRange = .UsedRange.Columns(6).Cells
For Each Cell In myRange
If Cell.Value = SEARCHFOR Then
Cell.Offset(-1, -5).Locked = False
End If
Next

where ActiveSheet.UsedRange is the highlighted line.

2 questions, please:

Why does disabling this addin trigger code?
Why the error message?

Nb: the activeworkbook only has data in cols 1 to 5 !!
Hence the error?

This particular addin is the one I believe to be the root of the
problem in my earlier post. It contains an Event Class module
which I had expected would only operate on books opened
by that addin. It may be that the event code is firing (quote)
willy-nilly?

Regards.
Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 10/07/2003


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to set the FormulaArrary property of the range class RTK Excel Worksheet Functions 0 April 13th 10 08:38 AM
unable to get the pivotfields property of the pivottable class dhstein Excel Discussion (Misc queries) 0 January 6th 10 02:27 AM
unable to set the formula array property of the range class JLP Excel Worksheet Functions 3 November 18th 08 10:54 PM
Unable to get the Interior property of the PlotArea class [email protected] Charts and Charting in Excel 2 September 3rd 08 03:41 PM
Unable to set the Values property of the Series class rafael garcia Charts and Charting in Excel 1 September 25th 06 04:31 PM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"