![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 20
|
I'm developing spreadsheets in excel using control toolbox functions that effect other cells (obviously). I was wondering if anyone knew of a website that could provide me with basic VB source code definitions.
For instance, the code below turns text in a range of cells red and and underlines them when a control toolbox checkbox is checked. I need to know how to know other basics like how do I make it highlight the whole cell. Private Sub CheckBox1_Click() If Me.CheckBox1.Value = True Then Range("B14:D14").Font.Color = vbRed Range("B14:D14").Font.Underline = xlUnderlineStyleSingle Else Range("B14:D14").Font.Color = vbBlack Range("B14:D14").Font.Underline = False End If End Sub |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
__________________
~Anne Troy |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
for these controls are avail within excels help files. Just press F1 while in the VBA Editor and Type & search for what you need. OR search via the Object browser (F2) in the VBA Editor. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|