Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-12-2015, 08:37 AM
Doug Needham Doug Needham is offline Run Time Error 424 - Object Required Windows 7 64bit Run Time Error 424 - Object Required Office 2013
Novice
Run Time Error 424 - Object Required
 
Join Date: Nov 2014
Posts: 20
Doug Needham is on a distinguished road
Default Run Time Error 424 - Object Required

I have a toggle button in my spreadsheet that has become "inactive". Nothing happens when I click it. When I view the code (shown below) and hit F5, I get a Run Time Error 424 - Object Required error message. This macro has worked in the past. Also, this issue is occurring on multiple spreadsheets that also have toggle buttons, although the code is different in the other spreadsheets.

It appears that something has happened in Excel to cause this problem because it's occurring in different Excel files with different code.


Private Sub ToggleButton1_Click()

If ToggleButton1.Value = True Then
'This area contains the things you want to happen
'when the toggle button is not depressed
ActiveSheet.Range("$B$6:$N$319").AutoFilter Field:=4, Criteria1:="<>"
Range("A1").Select


Else
'This area contains the things you want to happen
'when the toggle button is depressed


ActiveSheet.ShowAllData
Range("A1").Select
End If

End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge Berryblue Mail Merge 1 11-13-2014 05:36 PM
Run Time Error 424 - Object Required Run-time error 91 object variable or with block variable not set JUST ME Word VBA 4 03-25-2014 06:56 AM
Run Time Error 424 - Object Required Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
Run Time Error 424 - Object Required vba error (object required) for highlight vowels gsrikanth Word VBA 1 04-22-2012 08:55 PM
Run Time Error 424 - Object Required vba error (object required) for highlight vowels gsrikanth Excel Programming 1 04-18-2012 01:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft