LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Substitute for OLE SpinButton?

Hi:

I'm building a spreadsheet on a PC that contains a SpinButton with the
following code:

Private Sub SpinButton1_SpinDown()
Me.OLEObjects("SpinButton1").Object.Max = _
Range("TotalRecords").Value
Me.OLEObjects("SpinButton1").Object.Min = 4
Range("RowIndex").Value = Me.OLEObjects("SpinButton1").Object.Value
End Sub

Private Sub SpinButton1_SpinUp()
Me.OLEObjects("SpinButton1").Object.Max = _
Range("TotalRecords").Value
Me.OLEObjects("SpinButton1").Object.Min = 4
Range("RowIndex").Value = Me.OLEObjects("SpinButton1").Object.Value
End Sub

All it needs to do is update its maximum value from a cell on the worksheet
called "Total Records." (The minimum value is always 4.) Then it deposits its
value to a cell on the sheet named "RowIndex."

This all works really well on the PC, but when some users in my department
open the workbook on their Macs, the SpinButton isn't accessible, and the
code returns a bizarro error indicating that the OLE objects could not be
created. I did some digging around in the help menu, and it seems like this
uses ActiveX and, as a result, won't work on the Macs.

I don't really know much about this sort of thing. I've tried using a
standard spin control from the Forms toolbar (you know, that you can assign a
"cell link" to), but I can't figure out how to set its maximum value so that
it updates from the "TotalRecords" cell. (And even in the course of trying to
figure out THAT issue, I can't seem to write a macro that will run and leave
the control unselected when its done.)

I've far exceeded my stupidity threshold. If anyone could tell me what I'm
doing wrong, I'd really appreciate it. It seems like I should be able to do
something like this so that it runs well on both the PC and the Mac, but
clearly I can't. 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
How:spinbutton to display negative integers(e.g. range -10 to 10) Boris Excel Discussion (Misc queries) 6 May 15th 23 03:45 AM
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
Excel 2003 visual basic for 'spinbutton' Browny Excel Discussion (Misc queries) 2 May 9th 08 06:46 AM
Spinbutton pcor New Users to Excel 2 November 6th 07 03:16 PM
Spinbutton Ben B Excel Discussion (Misc queries) 3 March 9th 06 11:38 AM


All times are GMT +1. The time now is 03:51 PM.

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"