Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I make clickable boxes for cells?


Somewhere I had read or saw video of a method to create clickable boxes
with Excel, but I forgot where it is. If you can find this resource then
please tell me? Anyway, how would you make clickable boxes


--
Advice Pro
------------------------------------------------------------------------
Advice Pro's Profile: http://www.thecodecage.com/forumz/member.php?userid=204
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=80030

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How can I make clickable boxes for cells?


Here's some simple code to add a button to a worksheet and assign a
procedure to execute when clicked.

Sub CreateButton()
Dim C As Excel.Button
Dim WS As Worksheet
Dim R As Range
Set WS = Worksheets("Sheet1") '<<< place button on this sheet
Set R = WS.Range("C10") '<<< place button in this cell
With R
Set C = WS.Buttons.Add(.Left, .Top, .Width, .Height)
End With
With C
.AutoSize = True
.Caption = "Click Me Long Text"
.OnAction = "'" & ThisWorkbook.Name & "'!TheProc"
End With
End Sub

Sub TheProc()
MsgBox "Hello World"
End Sub




Change the lines marked with <<< to the appropriate values.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Fri, 27 Mar 2009 19:12:38 +0000, Advice Pro
wrote:


Somewhere I had read or saw video of a method to create clickable boxes
with Excel, but I forgot where it is. If you can find this resource then
please tell me? Anyway, how would you make clickable boxes

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default How can I make clickable boxes for cells?

data-validation. set up a row of cells with data you desire to use. then do
a data validation and selec the range.

"Advice Pro" wrote:


Somewhere I had read or saw video of a method to create clickable boxes
with Excel, but I forgot where it is. If you can find this resource then
please tell me? Anyway, how would you make clickable boxes


--
Advice Pro
------------------------------------------------------------------------
Advice Pro's Profile: http://www.thecodecage.com/forumz/member.php?userid=204
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=80030


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
Clickable Cells JSnow Excel Discussion (Misc queries) 2 September 25th 08 04:50 PM
How can I make a clickable button to do a Key Combo? BGerman Excel Worksheet Functions 4 August 21st 06 05:01 PM
Make text cells and combo boxes required? mlroy@savvis Excel Discussion (Misc queries) 2 July 24th 06 08:19 PM
Make bars on a bar chart clickable? Mark Stephens Charts and Charting in Excel 5 May 19th 05 12:40 PM
I want to make locked cells un-clickable John[_95_] Excel Programming 2 January 28th 05 12:22 AM


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