Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default colour changingusing VBE

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default colour changingusing VBE

Hi Stan,

yes it is, and here's a link to a site with explanations of how to do
it:

http://www.cpearson.com/excel/colors.htm

Hope this helps.

Pete

Stan Halls wrote:

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default colour changingusing VBE

Thanks for that but it seems to be the reverce of what i am after, What i am
trying to do is , if the cell value = 1 then cellcolour turns red , i know i
can do this in conditional formatting but if i do then i get an error because
i have gone over the 4,000 limit , i was hoping that doing it in VBE might
get me over the problem

"Pete_UK" wrote:

Hi Stan,

yes it is, and here's a link to a site with explanations of how to do
it:

http://www.cpearson.com/excel/colors.htm

Hope this helps.

Pete

Stan Halls wrote:

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default colour changingusing VBE

Send me the sheet I would answer with solution.


Stan Halls a écrit :
Thanks for that but it seems to be the reverce of what i am after, What i am
trying to do is , if the cell value = 1 then cellcolour turns red , i know i
can do this in conditional formatting but if i do then i get an error because
i have gone over the 4,000 limit , i was hoping that doing it in VBE might
get me over the problem

"Pete_UK" wrote:

Hi Stan,

yes it is, and here's a link to a site with explanations of how to do
it:

http://www.cpearson.com/excel/colors.htm

Hope this helps.

Pete

Stan Halls wrote:

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default colour changingusing VBE

colourindex will do that


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If mycell.Value = whatever Then colourindex = 3
End Sub

would change the cell to red if true

"Stan Halls" wrote:

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default colour changingusing VBE

Sorry i might be a bit stupid on here but i cant seem to make it work

"Mike" wrote:

colourindex will do that


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If mycell.Value = whatever Then colourindex = 3
End Sub

would change the cell to red if true

"Stan Halls" wrote:

is it possable to change the cell colour / text depending on the value of the
cell.... using VBE rather than conditional formatting

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
Font colour numbers JC Excel Discussion (Misc queries) 2 October 7th 06 01:14 PM
alternating cell colour mohd21uk via OfficeKB.com New Users to Excel 2 May 12th 06 12:17 PM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Problems with Colour Printing Aussie CPA Excel Discussion (Misc queries) 1 February 18th 05 12:03 AM
Text in Blue colour, but print in black colour wuwu Excel Worksheet Functions 1 November 13th 04 02:36 PM


All times are GMT +1. The time now is 07:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"