Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default automatically create a spinner and link it when a button is pressed


For my gcse coursework in ICT i need to create a button which will
insert a new row while doing this i need it to create a spinner. i can
do this but i am having problems getting it to link it to the cell
automatically please help.


--
jamesleggit
------------------------------------------------------------------------
jamesleggit's Profile: http://www.excelforum.com/member.php...o&userid=23892
View this thread: http://www.excelforum.com/showthread...hreadid=375294

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default automatically create a spinner and link it when a button is pressed

Sub Macro1()
Dim spn As Spinner
Dim rng as Range
Set spn = _
ActiveSheet.Spinners.Add(265.5, 128.25, 21, 15)
Set rng = spn.TopLeftCell
spn.LinkedCell = rng.Address(external:=False)
End Sub


--
Regards,
Tom Ogilvy


"jamesleggit"
wrote in message
...

For my gcse coursework in ICT i need to create a button which will
insert a new row while doing this i need it to create a spinner. i can
do this but i am having problems getting it to link it to the cell
automatically please help.


--
jamesleggit
------------------------------------------------------------------------
jamesleggit's Profile:

http://www.excelforum.com/member.php...o&userid=23892
View this thread: http://www.excelforum.com/showthread...hreadid=375294



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
create a button when pressed it will +1 to another field mswisher Excel Discussion (Misc queries) 2 November 24th 09 04:34 PM
How to create a link by using command button in VB Dav Excel Discussion (Misc queries) 1 March 9th 06 12:23 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
How do I create a button or control that will automatically go to Roger Excel Worksheet Functions 1 October 29th 04 01:31 AM
Which button was pressed? Adrian[_4_] Excel Programming 7 April 28th 04 04:55 PM


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