Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default One spinner that controls whichever cell I select

I have a worksheet with multiple numeric values which are changed very
frequently. I would like to be able to just make one spinner to control
'selected cell' or 'highlighted cell'. Is this possible? I understand I can
link the spinner to (example) A2 but is there a code that means 'selected
cell' where I could just click on cell A3 or A4 and use the spinner to change
just A3 and just A4?

If this is not possible I will need to make a separate spinner next to each
and every number field on my worksheet which seems monotonous. If this is the
method you would suggest, how could I just create one row with multiple
spinners and have that one row copied downward till the end of the document.
I tried copy + paste but the spinners are still controlling the cell from the
area I copied and I have to re-edit the linked cell for all pasted spinners.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default One spinner that controls whichever cell I select

All is possible through Excel!! just kidding but here you go:

Private Sub SpinButton1_SpinDown()
ActiveCell.Value = ActiveCell.Value - 1
End Sub

Private Sub SpinButton1_SpinUp()
ActiveCell.Value = ActiveCell.Value + 1
End Sub


--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"downward spiral" wrote:

I have a worksheet with multiple numeric values which are changed very
frequently. I would like to be able to just make one spinner to control
'selected cell' or 'highlighted cell'. Is this possible? I understand I can
link the spinner to (example) A2 but is there a code that means 'selected
cell' where I could just click on cell A3 or A4 and use the spinner to change
just A3 and just A4?

If this is not possible I will need to make a separate spinner next to each
and every number field on my worksheet which seems monotonous. If this is the
method you would suggest, how could I just create one row with multiple
spinners and have that one row copied downward till the end of the document.
I tried copy + paste but the spinners are still controlling the cell from the
area I copied and I have to re-edit the linked cell for all pasted spinners.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default One spinner that controls whichever cell I select

Oh my god, finally! Thank you so much John Bundy! I've been asking all over
the internet and you're the only one that knew.

"John Bundy" wrote:

All is possible through Excel!! just kidding but here you go:

Private Sub SpinButton1_SpinDown()
ActiveCell.Value = ActiveCell.Value - 1
End Sub

Private Sub SpinButton1_SpinUp()
ActiveCell.Value = ActiveCell.Value + 1
End Sub


--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"downward spiral" wrote:

I have a worksheet with multiple numeric values which are changed very
frequently. I would like to be able to just make one spinner to control
'selected cell' or 'highlighted cell'. Is this possible? I understand I can
link the spinner to (example) A2 but is there a code that means 'selected
cell' where I could just click on cell A3 or A4 and use the spinner to change
just A3 and just A4?

If this is not possible I will need to make a separate spinner next to each
and every number field on my worksheet which seems monotonous. If this is the
method you would suggest, how could I just create one row with multiple
spinners and have that one row copied downward till the end of the document.
I tried copy + paste but the spinners are still controlling the cell from the
area I copied and I have to re-edit the linked cell for all pasted spinners.

Reply
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
Cannot select multiple controls Blue Max New Users to Excel 3 March 14th 10 07:28 AM
Exporting excel charts with form controls (spinner) to Powerpoint Mike B Charts and Charting in Excel 1 November 18th 07 04:10 PM
spinner linked cell problem jim Excel Discussion (Misc queries) 2 July 22nd 05 04:08 PM
Select All controls in a worksheet and delete them rova78 Excel Discussion (Misc queries) 1 April 28th 05 11:05 PM
How can I select all Controls in a wooksheets bookworm98[_4_] Excel Programming 3 January 19th 04 03:54 AM


All times are GMT +1. The time now is 10:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"