Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Excel 2003 VB Scripting Question. How to change row color whenclicking a clickable

Reply
 
Old 08-28-2009   #1 (permalink)
usmcwhitaker


 
 

Excel 2003 VB Scripting Question. How to change row color whenclicking a clickable

Good afternoon,

This may or may not be a very difficult VB Scripting or even an Excel
Feature, but if someone could help me out that would be great.

I have found out how to add clickable items to my spreadsheets.
Click on View, Toolbars and Forms
Then just click the click the item you want to add to the spreadsheet

My question is, how do you make the row change colors once you click
the box?
I want to make the row change green when the box is clicked.
I would like it to be grey when not clicked.

If possible, I would like only the row and the columns up to the
clickables to change colors,
not the entire row to the end of the sheet.

If anyone could helpp it would be much appreciated.
Thank you very much
Sgt Shayne Whitaker

My System SpecsSystem Spec
Old 08-28-2009   #2 (permalink)
mr_unreliable


 
 

Re: Excel 2003 VB Scripting Question. How to change row color whenclicking a clickable



usmcwhitaker wrote:
Quote:

> This may or may not be a very difficult VB Scripting or even an Excel
> Feature, but if someone could help me out that would be great.
>
> I have found out how to add clickable items to my spreadsheets.
> Click on View, Toolbars and Forms
> Then just click the click the item you want to add to the spreadsheet
>
> My question is, how do you make the row change colors once you click
> the box?
> I want to make the row change green when the box is clicked.
> I would like it to be grey when not clicked.
>
> If possible, I would like only the row and the columns up to the
> clickables to change colors,
> not the entire row to the end of the sheet.
>
hi Sgt Whitaker,

You set up a "range", and then set the color attribute of the range.

This might help:

http://techonthenet.com/excel/macros/change_color.php

Note that the notion of XL marcos and vbScript are more-or-less
interchangeable. Just about any XL macro can be re-written as
script without too much trouble.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Color to Excel sheet? #FF0000 (255,0,0) VB Script
Visio 2003 Scripting? Org chart job PowerShell
Scripting question Vista General
Folder Scripting question VB Script
Can't change Color of pages using color/appearance Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46