PC Review


Reply
Thread Tools Rate Thread

accessing the value of a slider without selecting it

 
 
bshumsky06@yahoo.com
Guest
Posts: n/a
 
      22nd Nov 2006
Hi,
I would like to access the value of a slider form control in the macro
assigned to it. However, I don't want to change the selection or focus
on screen. The following code works:

Sheets("Sheet1").Shapes("Scroll Bar 6").Select
result = Selection.Value

but the following produces an error:
result=Sheets("Sheet1").Shapes("Scroll Bar 6").Value

Any ideas on why this might be?

Thanks,
Bob

 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      22nd Nov 2006
try renaming the control ScrollBar6 without spaces and use.....

result = Sheets("Sheet1").ScrollBar6.Value


--
Cheers
Nigel



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I would like to access the value of a slider form control in the macro
> assigned to it. However, I don't want to change the selection or focus
> on screen. The following code works:
>
> Sheets("Sheet1").Shapes("Scroll Bar 6").Select
> result = Selection.Value
>
> but the following produces an error:
> result=Sheets("Sheet1").Shapes("Scroll Bar 6").Value
>
> Any ideas on why this might be?
>
> Thanks,
> Bob
>



 
Reply With Quote
 
bshumsky06@yahoo.com
Guest
Posts: n/a
 
      22nd Nov 2006
I tried using the .Name to rename it but still get "error 438, object
doesn't support property or method".

Thanks,
Bob

Nigel wrote:
> try renaming the control ScrollBar6 without spaces and use.....
>
> result = Sheets("Sheet1").ScrollBar6.Value
>
>
> --
> Cheers
> Nigel
>
>
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> > I would like to access the value of a slider form control in the macro
> > assigned to it. However, I don't want to change the selection or focus
> > on screen. The following code works:
> >
> > Sheets("Sheet1").Shapes("Scroll Bar 6").Select
> > result = Selection.Value
> >
> > but the following produces an error:
> > result=Sheets("Sheet1").Shapes("Scroll Bar 6").Value
> >
> > Any ideas on why this might be?
> >
> > Thanks,
> > Bob
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Client JavaScript after Selecting Row from Grid Jason Microsoft ASP .NET 0 11th Dec 2009 08:23 AM
slider KamYach Microsoft C# .NET 0 6th Mar 2009 01:03 PM
Quest: Accessing WPF in C# Code - Selecting a ComboxItem based on string... Brandon Microsoft C# .NET 0 5th Nov 2008 03:20 PM
Slider bar Dale Fye Microsoft Access Form Coding 2 19th Mar 2008 11:59 AM
Why FORM's verticle slider hidden (can not find the verticle slider) Martin \(Martin Lee\) Microsoft Access 2 27th Feb 2008 02:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.