Hi,
I am trying to write a macro that will be associated with the forms checkbox. What I want to do is simple, but cannot get it to run properly.
What i need is when you put a check in the box - it displays certain text.
Give me some help
Hi ,
Checkout this link...this will help you..
http://www.bigresource.com/VB-CheckB...tml#g2oKjO16Nq
You can get some idea from this code:
Code:Sub Selection_Print() Dim strSheetActive As String Dim chkb As Control strSheetActive = ThisWorkbook.ActiveSheet.Name For Each chkb In Me.Controls 'naming convention - find check boxes If Left(chkb.Name, 3) = "chk" Then If chkb.Value = True Then 'do yer funky stuff End If End If Next chkb ThisWorkbook.Sheets(strSheetActive).Activate End Sub
ExlGuru
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks