Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Active Cell Fill Colour


Hi

Can anyone suggest some VBA code that fills the current cell with a
colour to give an easy indication which cell is selected on a large
sheet.

Thanks


--
uplink600
------------------------------------------------------------------------
uplink600's Profile: http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520076

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Active Cell Fill Colour

Hi uplink600

Look here
http://www.cpearson.com/excel/RowLiner.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"uplink600" wrote in message
...

Hi

Can anyone suggest some VBA code that fills the current cell with a
colour to give an easy indication which cell is selected on a large
sheet.

Thanks


--
uplink600
------------------------------------------------------------------------
uplink600's Profile: http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520076



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Active Cell Fill Colour

Hi 'Uplink'

Chip Pearson's got a good example of this. Check out his site at:

http://www.cpearson.com/excel/excelM...ightActiveCell

Best regards

John


"uplink600" wrote
in message ...

Hi

Can anyone suggest some VBA code that fills the current cell with a
colour to give an easy indication which cell is selected on a large
sheet.

Thanks


--
uplink600
------------------------------------------------------------------------
uplink600's Profile:
http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520076



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Active Cell Fill Colour

Hi uplink600,

Here is the code I am using :

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.Interior.ColorIndex = 6
Target.Select
End Sub

HTH
Cheers
Carim

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Active Cell Fill Colour

No reason for the Target.Select on the end. The selection hasn't changed.

Just note that this will clear any range you may have copied from the
clipboard effectively disabling pasting to this page.

--
Regards,
Tom Ogilvy

"Carim" wrote in message
oups.com...
Hi uplink600,

Here is the code I am using :

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.Interior.ColorIndex = 6
Target.Select
End Sub

HTH
Cheers
Carim





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Active Cell Fill Colour

Thanks Tom for your precious comments ...

A great Fan of Yours

Best Regards

Carim

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
Active cell default colour Boyd Excel Discussion (Misc queries) 1 October 23rd 08 12:50 AM
How do I increase the boldness/colour of the active cell in excel Anthony S Excel Discussion (Misc queries) 0 October 7th 08 09:32 AM
On a Mac how do I change the border colour of the active cell? Lino Excel Discussion (Misc queries) 2 May 23rd 06 01:36 PM
Update Macro: Leave Colour As Before Once Cell is Not Active JB2010 Excel Discussion (Misc queries) 2 February 2nd 06 06:08 PM
Fill from active cell Neal Excel Programming 0 November 3rd 04 03:26 AM


All times are GMT +1. The time now is 04:33 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"