Check the Min and Max properties for the control.
---
Lydia
Predrag Grkovic wrote in message <73p7qn$76p$1...@SOLAIR2.EUnet.yu>...
Very interesting. I never noticed it before, but it appears as if the
spin button returns unsigned integers through its linked cell property even
though it returns signed integers through its value property.
The quickest solution to is to add an additional formula that does the
conversion for you. I'll assume that there is a named range "Link" that
represents the linked cell for the spin button and a named range "Max" that
holds the Max value for the spin button. The following formula will convert
the unsigned value into a signed value that matches the spin button's .Value
property:
=IF(Link>Max,Link-65536,Link)
--
Rob Bovey, MCSE
The Payne Consulting Group
http://www.payneconsulting.com
Predrag Grkovic wrote in message <73r2l5$dp9$1...@SOLAIR2.EUnet.yu>...
Private Sub SpinButton1_Change()
Range("D1").Value = SpinButton1.Value
End Sub
HTH,
John Green - Excel MVP
Sydney
Australia
In article <73r2l5$dp9$1...@SOLAIR2.EUnet.yu>, Predrag Grkovic wrote:
> From: "Predrag Grkovic" <pgrk...@EUnet.yu>
> Newsgroups: microsoft.public.excel.programming
> Subject: Re: SpinButton = -1, linked cell = 65535
> Date: Sun, 29 Nov 1998 10:03:36 +0100