Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Removing border around Check box

I have this code to create a label on a workshhet and then a check box
on top of the label

the code is:

Sub test()

'create label
ActiveSheet.OLEObjects.Add(ClassType:="Forms.Label .1",
Link:=False, _
DisplayAsIcon:=False, Left:=0, Top:=0, Width:=240, Height:= _
75).Select
ActiveSheet.OLEObjects(1).Object.BackColor = &HC0C0C0

'create text box
ActiveSheet.OLEObjects.Add(ClassType:="Forms.Check Box.1",
Link:=False, _
DisplayAsIcon:=False, Left:=16, Top:=16, Width:=65, Height _
:=18).Select
ActiveSheet.OLEObjects(2).Object.BackColor = &HC0C0C0


End Sub

the problem is that I cannot remove the border surrounding the text
box and its caption. The border is actually surrounding only on the
right and bottom of the check box. I tried changing the SpecialEffect
property of the check box from sunken to flat, but that only changes
the box around the checkbox itself and not the border surrounding the
check box and its caption.

the funny thing is that is I create this same check box manually and
not programmatically, including changing the color, and this border
does not show up.

Any ideas?

Thanks


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
Removing check boxes (forms toolbar) jvs Excel Worksheet Functions 1 November 11th 09 04:23 PM
Removing hyperlink without removing the font settings /border sett San Excel Programming 2 September 27th 07 04:37 PM
Removing a collection item via key name check [email protected] Excel Programming 3 June 30th 06 03:10 PM
Removing a check digit cwd58 Excel Discussion (Misc queries) 3 June 22nd 06 06:07 PM
Changing the border of one cell s/n change the border of adjacent gjanssenmn Excel Discussion (Misc queries) 2 October 5th 05 08:35 PM


All times are GMT +1. The time now is 08:35 PM.

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"