LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
blb blb is offline
external usenet poster
 
Posts: 1
Default error 424 - Object Required

I receive this error message sometimes while running the code below.
Out perhaps 1200 hits on this code it may error 2 or three times. Can
anyone see where the potential for error 424 would be?

Thanks!

Sub FreezePanes()
On Error GoTo ErrorHandler
If ActiveWindow.FreezePanes = False Then
MsgBox prompt:="The area to the left and top of the current
cell will be 'frozen'." & Chr(10) & _
"Select this menu option again to 'unfreeze'.",
Title:="CAP - Freeze Panes"
FreezeMenu.caption = "Un&freeze Panes"
Else
FreezeMenu.caption = "&Freeze Panes"
End If
ActiveWorkbook.Unprotect
ActiveWindow.FreezePanes = Not (ActiveWindow.FreezePanes)
ActiveWorkbook.Protect Windows:=True
Exit Sub
ErrorHandler:
Catch ThisWorkbook.Name, "FreezePanes"
End Sub
 
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
R/T 424 - Object required Help Jim May Excel Discussion (Misc queries) 2 April 10th 08 03:01 PM
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error [email protected] Excel Discussion (Misc queries) 4 September 25th 06 01:35 PM
Runtime error '424': Object Required loren.pottinger Excel Discussion (Misc queries) 1 August 28th 06 09:56 PM
"Microsoft Visual Basic runtime error '424' object required". SharonG. Excel Worksheet Functions 0 July 5th 06 01:36 AM
error while compiling "OBJECT REQUIRED" nuti Excel Discussion (Misc queries) 1 January 12th 06 03:14 PM


All times are GMT +1. The time now is 08:35 AM.

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

About Us

"It's about Microsoft Excel"