Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Controls on worksheet

Hi all,

suppose i have a number of similar controls (e.g Checkbox control) embedded
on a worksheet (not form controls, but using Control Toolbox) & i want to
change their Caption property for all the controls (checkboxes) to
Nothing( blank), & i want to do that by clicking another control say, a
Command Button ( embedded again on the worksheet) named say, RESET button,
how can i go about doing that.
please note that there is no form made here, but controls embedded on a
worksheet using Control toolbox.

Rgds,

Eijaz



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Controls on worksheet

Private Sub Reset_Click()
Dim oObj as OleObject
for each oObj in Me.OleObjects
if typeof oObj.Object is MSForms.Checkbox then
oObj.Object.Caption = ""
end if
Next
End Sub

--
Regards,
Tom Ogilvy


"gr8guy" wrote in message
...
Hi all,

suppose i have a number of similar controls (e.g Checkbox control)

embedded
on a worksheet (not form controls, but using Control Toolbox) & i want to
change their Caption property for all the controls (checkboxes) to
Nothing( blank), & i want to do that by clicking another control say, a
Command Button ( embedded again on the worksheet) named say, RESET button,
how can i go about doing that.
please note that there is no form made here, but controls embedded on a
worksheet using Control toolbox.

Rgds,

Eijaz





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
Protecting Controls in a worksheet Dire straits Excel Discussion (Misc queries) 2 August 12th 06 03:46 AM
Tab Between Active X Controls on Worksheet Dan Gesshel Excel Programming 1 February 25th 04 05:22 PM
controls on worksheet jim c. Excel Programming 3 February 9th 04 06:43 PM
Worksheet Controls Andrew Arthur Excel Programming 0 February 5th 04 06:46 PM
Referencing to controls on a worksheet John Nikolopoulos Excel Programming 3 September 10th 03 10:08 AM


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