Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BG
 
Posts: n/a
Default linking spinner and button entries

I'm trying to achieve a dual way of incrementing the contents of a cell
using the spinner and / or buttons from the forms toolbar.
Example - Cell B1 contains the number 5
spinner increments the entry by 1. Cell now contains the number 6
Button then increments same entry by 1 each time it's clicked (4 clicks).
Cell now contains the number 10.

Spinner works OK,
Being a novice (especially to macros) I'm now struggling to get the button
to work. I can get it to increase by 1 (using another cell for the result)
but it only worlks once because cell B1 remains constant.

Can anyone help please?

Thanks.
BG


  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

BG

Sub go_up()
With Range("B1")
..Value = .Value + 1
End With
End Sub


Gord Dibben Excel MVP

On Mon, 26 Sep 2005 22:03:31 +0100, "BG" wrote:

I'm trying to achieve a dual way of incrementing the contents of a cell
using the spinner and / or buttons from the forms toolbar.
Example - Cell B1 contains the number 5
spinner increments the entry by 1. Cell now contains the number 6
Button then increments same entry by 1 each time it's clicked (4 clicks).
Cell now contains the number 10.

Spinner works OK,
Being a novice (especially to macros) I'm now struggling to get the button
to work. I can get it to increase by 1 (using another cell for the result)
but it only worlks once because cell B1 remains constant.

Can anyone help please?

Thanks.
BG


  #3   Report Post  
BG
 
Posts: n/a
Default

Many thanks Gordon.

BG


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Thanks for the feedback.

Gord

On Tue, 27 Sep 2005 19:03:19 +0100, "BG" wrote:

Many thanks Gordon.

BG


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
Spinner Button - Incremental Change Anauna Excel Discussion (Misc queries) 1 July 6th 05 07:17 PM
Spinner Button Reset Anauna Excel Discussion (Misc queries) 6 June 30th 05 01:57 PM
Spinner Button properties Ledge1 Excel Discussion (Misc queries) 1 December 8th 04 12:15 AM
How do I setup a spin button in excel Andy K Excel Discussion (Misc queries) 1 November 26th 04 09:08 PM


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