Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default properties of excel button/checkbox

Hi all,

Using forms bar, I created a button & a check box for each row.
I wish for the the button/check box to perform a specific task via
macro on the row it is located on.
my questions a
1) How do i know what row is accosiated with a specific button/check
box?
2) The check box run the assigned macro when it's marked and also when
it is unmarked. How may I query for the status?

any help would be appreciated.

tnx,
valiky
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default properties of excel button/checkbox

Option explicit
sub test1
dim BTN as button
set BTN = activesheet.buttons(application.caller)
msgbox btn.topleftcell.address '.row, .column
end sub

sub test2
dim CBX as checkbox
set CBX = activesheet.checkboxes(application.caller)
if cbx.value = xlon then
'checked
else
'not checked, it's xlOff
end if
msgbox cbx.topleftcell.address '.row, .column
end sub

yaniv wrote:

Hi all,

Using forms bar, I created a button & a check box for each row.
I wish for the the button/check box to perform a specific task via
macro on the row it is located on.
my questions a
1) How do i know what row is accosiated with a specific button/check
box?
2) The check box run the assigned macro when it's marked and also when
it is unmarked. How may I query for the status?

any help would be appreciated.

tnx,
valiky


--

Dave Peterson

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
Command Button Properties FredL Excel Discussion (Misc queries) 2 February 14th 08 08:20 PM
button properties Narasimha Excel Discussion (Misc queries) 4 October 16th 07 10:38 PM
command button properties gbeard Excel Worksheet Functions 4 April 21st 05 06:02 AM
Spinner Button properties Ledge1 Excel Discussion (Misc queries) 1 December 8th 04 12:15 AM
Command Button Properties Darren O'Connell Excel Programming 1 July 17th 03 09:34 AM


All times are GMT +1. The time now is 11:46 AM.

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"