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 "set" a checkbox name like i Set a worksheet?


Hi JustChris,

I tried your code and it works real nice.

This is what I tried:

Private Sub CommandButton1_Click()

Dim checknum As Integer
Dim blahblah As Integer

If TextBox1 = 1 Then
checknum = 1
End If

If TextBox1 = 2 Then
checknum = 2
End If

Call checkbox_num(checknum)
End Sub

Sub checkbox_num(checknum)

Dim chckbox As Object

Set chckbox = UserForm3.Controls("checkbox" & checknum)
chckbox.Value = True

End Sub


Are you encountering any problems with this method

- Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=373048

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
"_Fill" and "_Key1" is contained in the worksheet I want to copy.. CWP Excel Discussion (Misc queries) 1 April 6th 10 06:08 PM
Turn off "CALCULATE" on bottom of Excel worksheet. near "Ready" chrispal86 Excel Discussion (Misc queries) 2 February 2nd 10 08:36 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Excel VBA - go to worksheet "name" based on a cell reference ="Name" james007 Excel Programming 2 July 8th 04 11:04 PM


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