Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

range.calculate gives Run-time error '1004'

Status
Not open for further replies.

Gavona

Technical User
Aug 27, 2002
1,771
GB
Error Message: Run-time error '1004': Unable to set the Hidden property of the Range task

The above error is confusing me. The code concerned is:

With ThisWorkbook.Worksheets("CreateLog").Range("Progress")
[highlight red] .Calculate[/highlight]
.Offset(.Value, 1) = Round((Timer - start) / 60, 2) 'timer=secs since midnight
.Offset(.Value, 0) = Application.StatusBar
End With

This same subroutine has been called and functioned as expected 200 times within the procedure. I have the watch window open and this shows:
ThisWorkbook.Worksheets("CreateLog").ProtectContents False
Application.Iteration False
Application.EnableEvents False


Range("Progress") is a single cell, is not locked and contains the formula =COUNTA(A2:A199803)+2


Gavin
 
Gavin,

Did you ever get this resolved?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top