Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet with 5 scrollbars on it. The following code doesn't
work. It gives me: runtime error 424: Object required (When trying to reset the value of scrollbar 1). Windows("Surveys.xls").Activate Range("Comments").Value = "" 'This next bit should work - But didn't. ScrollBar1.Value = 0 ScrollBar2.Value = 0 ScrollBar3.Value = 0 ScrollBar4.Value = 0 ScrollBar5.Value = 0 Anyone know why? Thanks in advance Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If your code you are running is not in the worksheet where the controls
reside, then declare their reference prefixed with the sheet as follows Sheets("Sheet1").ScrollBar1.Value = 0 * changed sheet name as required -- Cheers Nigel "Greg Glynn" wrote in message oups.com... I have a worksheet with 5 scrollbars on it. The following code doesn't work. It gives me: runtime error 424: Object required (When trying to reset the value of scrollbar 1). Windows("Surveys.xls").Activate Range("Comments").Value = "" 'This next bit should work - But didn't. ScrollBar1.Value = 0 ScrollBar2.Value = 0 ScrollBar3.Value = 0 ScrollBar4.Value = 0 ScrollBar5.Value = 0 Anyone know why? Thanks in advance Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perfect. Thanks (I knew it was something "simple").
Regards Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Talking about difficult things¡¡¡¡ | Excel Programming | |||
scrollbar reslut makes another scrollbar to show | Excel Discussion (Misc queries) | |||
Excel and Access talking | Excel Discussion (Misc queries) | |||
Talking to a class or type between 2 sheets | Excel Programming | |||
Talking to a Perl script | Excel Programming |