PC Review


Reply
Thread Tools Rate Thread

Coding the Spinner

 
 
Dallman Ross
Guest
Posts: n/a
 
      4th Aug 2007
I'm just getting into VBA. I have a sheet with
financial formulas, and would like the Spinner
to increment or decrement the formula result in
the active cell in that column.

The column is Column O. The formula returns
values that look like this:

4.50
1.20
0.70
0.60
0.60

Those are added in another column's formula to find my
next order price. A second question therefore is,
could I leave the Column O data as-is but cause the
spinner to increment the next column's formula using
multiples of the Column O value?

I suppose clicking the spinner would have to save
this value somewhere, e.g., to a name I can use in
the formula.

I can explain further if this is confusing or I've left
something out. Any help would be much appreciated!

--
dman
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      4th Aug 2007

Assume spinner from the forms toolbar

Assign this macro to the spinner control

Sub Spin_Click()
s = Application.Caller
Set sp = ActiveSheet.Spinners(s)
MsgBox sp.Value
End Sub

then click the up and down arrows. You will see the value of the spinner.

Then determine how you can use this result to achieve what you speak of.

--
Regards,
Tom Ogilvy


"Dallman Ross" wrote:

> I'm just getting into VBA. I have a sheet with
> financial formulas, and would like the Spinner
> to increment or decrement the formula result in
> the active cell in that column.
>
> The column is Column O. The formula returns
> values that look like this:
>
> 4.50
> 1.20
> 0.70
> 0.60
> 0.60
>
> Those are added in another column's formula to find my
> next order price. A second question therefore is,
> could I leave the Column O data as-is but cause the
> spinner to increment the next column's formula using
> multiples of the Column O value?
>
> I suppose clicking the spinner would have to save
> this value somewhere, e.g., to a name I can use in
> the formula.
>
> I can explain further if this is confusing or I've left
> something out. Any help would be much appreciated!
>
> --
> dman
>

 
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
Spinner David Microsoft Excel Programming 1 29th Jul 2009 01:48 AM
How to add spinner? Trap025 Microsoft Powerpoint 2 21st Jan 2009 09:26 PM
Spinner =?Utf-8?B?bXJiYWxhamU=?= Microsoft Excel Programming 1 2nd Mar 2007 02:03 PM
Spinner Greg Robinson via OfficeKB.com Microsoft Excel Programming 0 26th Jan 2005 08:05 PM
Spinner michael Microsoft Windows 2000 Security 0 23rd Sep 2003 04:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:36 AM.