PC Review


Reply
Thread Tools Rate Thread

Change colour

 
 
millwalll
Guest
Posts: n/a
 
      23rd Apr 2008
hi all,
Is there a way in a form to make a button that on click will change the
colour of text on words I select ?

many thanks
 
Reply With Quote
 
 
 
 
greg
Guest
Posts: n/a
 
      23rd Apr 2008
Private Sub CommandButton1_Click()

Dim myCell As Range

For Each myCell In Selection.Cells

myCell.Font.ColorIndex = 50
Next myCell

End Sub


"millwalll" <(E-Mail Removed)> wrote in message
news:5CDF595F-F3BD-4625-AF1F-(E-Mail Removed)...
> hi all,
> Is there a way in a form to make a button that on click will change the
> colour of text on words I select ?
>
> many thanks



 
Reply With Quote
 
millwalll
Guest
Posts: n/a
 
      28th Apr 2008
Hi Greg,

Thanks for that, only problem I have is when I change colour it does not
show in the form the new colour. I need to be able to select code change
colour of it and the change to show in the form. The user will use this to
mark what serial key's have been used and whats ones have not be used. With
the code you gave me works but it only makes changes to the excel page what
they wont be able to see. Is there anyway to make the changes show in the
form ??

Thanks again

"millwalll" wrote:

> hi all,
> Is there a way in a form to make a button that on click will change the
> colour of text on words I select ?
>
> many thanks

 
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
How can I change my outlook 2003 colour to Any other colour? Navneet Microsoft Outlook 0 23rd Mar 2009 02:58 AM
Change cell colour on formula result change, no conditional format roster_jon Microsoft Excel Programming 0 2nd Dec 2008 12:11 PM
how to change the colour of task bar (bottom) and title bar (top) from black to any other colour hash Windows Vista Performance 1 5th Aug 2007 01:32 AM
change a cell background colour to my own RGB colour requirements =?Utf-8?B?U3RlcGhlbiBEb3VnaHR5?= Microsoft Excel Misc 4 16th Jun 2006 01:08 PM
Code to change interior colour only if current interior colour is =?Utf-8?B?QmVTbWFydA==?= Microsoft Excel Programming 2 5th Oct 2004 12:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 PM.