PC Review


Reply
Thread Tools Rate Thread

Checkbox background pattern problem

 
 
jsa1981@hotmail.com
Guest
Posts: n/a
 
      6th May 2005
I have put a checkbox from the Control toolbox onto my page.

I want to empty, lock, and grey out a cell if the checkbox is NOT
checked.
I have done the emptying, and the locking, but I need help with the
greying out.
What I need is not a simple colour, but a pattern. Secifically, when
using Excel 2000, I need the following color:
Go to format, cells.
Go to the patterns tab.
In the Pattern dropdownlist, I want the bottom-right pattern (light
diagonal crosses). I also want the lightest shade of grey from the same
dropdownlist.

Can anyone help me find how I can do this? Here is my code so far.

Private Sub CheckBox1_Click()
CheckBox4.Value = False
CheckBox5.Value = False
CheckBox6.Value = False

If CheckBox1.Value Then
CheckBox4.Enabled = True
CheckBox5.Enabled = True
CheckBox6.Enabled = True

Range("L61:T61").Value = ""
Range("L61:T61").Locked = False
Else
CheckBox4.Enabled = False
CheckBox5.Enabled = False
CheckBox6.Enabled = False

Range("L61:T61").Value = ""
Range("L61:T61").Locked = True
Range("L61:T61").Interior.Pattern = ""
End If
End Sub

 
Reply With Quote
 
 
 
 
jsa1981@hotmail.com
Guest
Posts: n/a
 
      6th May 2005
Found a way of doing this. Have a look here:

http://groups.google.co.uk/group/mic...74e172aac031b5

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unwanted Background pattern Templeton Microsoft Word Document Management 2 23rd Apr 2008 07:46 PM
unwanted background pattern koorrnong Windows Vista General Discussion 3 7th Jan 2008 03:38 AM
desktop background pattern =?Utf-8?B?cHJvbWFubw==?= Windows XP General 2 4th Oct 2006 07:42 AM
Adding in a background color/pattern afterwards.... martin weinberger Microsoft Frontpage 11 11th Dec 2003 06:25 PM
Background Pattern Sharon Windows XP Customization 4 7th Nov 2003 09:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:12 AM.