Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default SpinButton problem

Hi fellows

I have a spinbutton on my sheet with K3 as linked cells
In J3 i generate a address to select a range with this code

Private Sub SpinButton1_Change()
Range("J3") = "A1:C" & Range("K3")
Range(Range("J3").Value).Select
End Sub

Problem is
When i hit spinbutton the selected range is only selected
evry sekond time i click the button !!! Why ?
how do i fix this ?

thanks in advanse

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default SpinButton problem

You might try this:

Private Sub SpinButton1_GotFocus()
Range("A1:C" & Range("K3").Value).Select
End Sub

HTH,
Paul

"excelent" wrote in message
...
Hi fellows

I have a spinbutton on my sheet with K3 as linked cells
In J3 i generate a address to select a range with this code

Private Sub SpinButton1_Change()
Range("J3") = "A1:C" & Range("K3")
Range(Range("J3").Value).Select
End Sub

Problem is
When i hit spinbutton the selected range is only selected
evry sekond time i click the button !!! Why ?
how do i fix this ?

thanks in advanse



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default SpinButton problem

Hole in 1

thanks alot "PCLIVE"


"PCLIVE" skrev:

You might try this:

Private Sub SpinButton1_GotFocus()
Range("A1:C" & Range("K3").Value).Select
End Sub

HTH,
Paul

"excelent" wrote in message
...
Hi fellows

I have a spinbutton on my sheet with K3 as linked cells
In J3 i generate a address to select a range with this code

Private Sub SpinButton1_Change()
Range("J3") = "A1:C" & Range("K3")
Range(Range("J3").Value).Select
End Sub

Problem is
When i hit spinbutton the selected range is only selected
evry sekond time i click the button !!! Why ?
how do i fix this ?

thanks in advanse




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
Spinbutton pcor New Users to Excel 2 November 6th 07 03:16 PM
Userform SpinButton problem Ozgur Pars[_2_] Excel Programming 2 July 6th 06 09:02 AM
Spinbutton Ben B Excel Discussion (Misc queries) 3 March 9th 06 11:38 AM
spinbutton? CG Rosén Excel Programming 1 November 29th 04 11:16 PM
SpinButton Problem Pete Csiszar Excel Programming 7 January 1st 04 02:31 AM


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