LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SpinButton Excel 2002 bug?

Hi all. I got 2 sheets in the Sheet A i got a spin button and in Sheet B i
got some data.
These are my 3 routines. The first make the index for the SpiBtn. The second
and third are 2 events: SpinUp SpinDown. If i run the SpinUp and SpinDown
macro INSIDE the code, with debugger (F8 step to step) all works grate.

If i push my SpinButton, the routine is linked but dosn't produce anyeffect.

Index Maker:
=============================
Public Sub getposition()
Dim i As Integer

For i = 1 To 100
If Year(Date) = Worksheets("Mesi").Range("C" & i).Value _
And Month(Date) = Worksheets("Mesi").Range("A" & i).Value Then
Foglio1.SpinButton1.Min = 1
Foglio1.SpinButton1.Value = i
Foglio1.SpinButton1.Max = 100
Exit For
End If
Next
End Sub

===========================================
Events Down and Up.
===========================================
Private Sub SpinButton1_SpinDown()
Foglio1.SpinButton1.Value = Foglio1.SpinButton1.Value + 1
indice = Foglio1.SpinButton1.Value
If indice Foglio1.SpinButton1.Max Then Exit Sub
Worksheets("Main").Range("H1").Value = "CALENDARIO SCADENZE MESE DI " & _
Worksheets("Mesi").Range("B" & indice).Value & " " &
_Worksheets("Mesi").Range ("C" & indice).Value
End Sub

=================================

Private Sub SpinButton1_SpinUp()
Foglio1.SpinButton1.Value = Foglio1.SpinButton1.Value - 1
indice = Foglio1.SpinButton1.Value
If indice < Foglio1.SpinButton1.Min Then Exit Sub
Worksheets("Main").Range("H1").Value = "CALENDARIO SCADENZE MESE DI " & _
Worksheets("Mesi").Range("B" & indice).Value & " " &_
Worksheets("Mesi").Range("C" & indice).Value
End Sub
===========================================
Any Help?

 
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
Excel 2003 visual basic for 'spinbutton' Browny Excel Discussion (Misc queries) 2 May 9th 08 06:46 AM
Outlook 2002 calendar dates exported to Excel 2002 sort incorrectl scampbell Excel Worksheet Functions 0 February 22nd 06 06:31 PM
SpinButton control spins forever when calling COM function from Excel [email protected] Excel Programming 0 March 16th 05 05:56 PM
SpinButton Controls in Excel 2000 Mike Mertes Excel Programming 1 August 30th 04 01:38 PM
Excel 2002 files attached to Outlook 2002 EMails change size AJStadlin Excel Programming 1 October 15th 03 12:12 AM


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