Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Object Required


I used the following program in the Macro of a ScrollBar1:

Private Sub ScrollBar1_GotFocus()
ScrollBar1.Min = WorksheetFunction.Min(Range("A2:A25"))
ScrollBar1.Max = WorksheetFunction.Max(Range("A2:A25"))
End Sub
Private Sub ScrollBar1_Scroll()
ScrollBar1_Change
End Sub
Private Sub ScrollBar1_Change()
Sheets("Sheet1").Cells(3, 4) = ScrollBar1.Value
End Sub

I get this error:

Run-Time Error '424':
Object Required

The Debugger points to the ScrollBar1.value in the ScrollBar1_Change
subroutine.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Object Required


There must be more to it. That exact code works for me...
--
HTH...

Jim Thomlinson


"Philosophaie" wrote:

I used the following program in the Macro of a ScrollBar1:

Private Sub ScrollBar1_GotFocus()
ScrollBar1.Min = WorksheetFunction.Min(Range("A2:A25"))
ScrollBar1.Max = WorksheetFunction.Max(Range("A2:A25"))
End Sub
Private Sub ScrollBar1_Scroll()
ScrollBar1_Change
End Sub
Private Sub ScrollBar1_Change()
Sheets("Sheet1").Cells(3, 4) = ScrollBar1.Value
End Sub

I get this error:

Run-Time Error '424':
Object Required

The Debugger points to the ScrollBar1.value in the ScrollBar1_Change
subroutine.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Object Required

Where exactly is this code and the control located?
On Jun 24, 8:01*pm, Philosophaie
wrote:
I used the following program in the Macro of a ScrollBar1:

Private Sub ScrollBar1_GotFocus()
* * ScrollBar1.Min = WorksheetFunction.Min(Range("A2:A25"))
* * ScrollBar1.Max = WorksheetFunction.Max(Range("A2:A25"))
End Sub
Private Sub ScrollBar1_Scroll()
* * ScrollBar1_Change
End Sub
Private Sub ScrollBar1_Change()
* * Sheets("Sheet1").Cells(3, 4) = ScrollBar1.Value
End Sub

I get this error:

Run-Time Error '424':
Object Required

The Debugger points to the ScrollBar1.value in the ScrollBar1_Change
subroutine.


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
object required [email protected] Excel Programming 3 August 28th 07 06:08 PM
Object Required JMB Excel Programming 0 March 26th 06 11:58 PM
Object Required Jim Thomlinson Excel Programming 0 March 26th 06 11:46 PM
Object Required aftamath Excel Discussion (Misc queries) 2 March 14th 06 10:19 PM
Object required? davegb Excel Programming 14 November 15th 05 10:35 PM


All times are GMT +1. The time now is 02:18 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"