Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default activecell color

what is the best way to change the color of the
activecell?

Thanks for your help.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default activecell color

Hi
activecell.colorindex = 3

--
Regards
Frank Kabel
Frankfurt, Germany


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default activecell color


Activecell.Interior.ColorIndex = 3

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"alldreams" wrote in message
...
what is the best way to change the color of the
activecell?

Thanks for your help.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default activecell color

Hi
make this
Hi
activecell.interior.colorindex = 3


--
Regards
Frank Kabel
Frankfurt, Germany


Frank Kabel wrote:
Hi
activecell.colorindex = 3


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default activecell color

I get this error:

Object doesn't support this object or method

Sub color()
ActiveCell.ColorIndex = 3
End Sub

I want the activecell, at all times, to be gray.

Any suggestions?




-----Original Message-----
Hi
activecell.colorindex = 3

--
Regards
Frank Kabel
Frankfurt, Germany


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default activecell color

this work. However, the color change remains after I
changed to a different cell. I want to dynamically
change the color of the activecell only

thanks!

-----Original Message-----
Hi
make this
Hi
activecell.interior.colorindex = 3


--
Regards
Frank Kabel
Frankfurt, Germany


Frank Kabel wrote:
Hi
activecell.colorindex = 3


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default activecell color

You need VBA for this

Dim prev As Range

Private Sub Worksheet_Activate()
Set prev = ActiveCell
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

ActiveCell.Interior.ColorIndex = 15
prev.Interior.ColorIndex = xlColorIndexNone
Set prev = ActiveCell
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"alldreams" wrote in message
...
I get this error:

Object doesn't support this object or method

Sub color()
ActiveCell.ColorIndex = 3
End Sub

I want the activecell, at all times, to be gray.

Any suggestions?




-----Original Message-----
Hi
activecell.colorindex = 3

--
Regards
Frank Kabel
Frankfurt, Germany


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default activecell color

Hi
for this you would need an event procedure. But maybe the following is
what you're looking for:

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



--
Regards
Frank Kabel
Frankfurt, Germany


alldreams wrote:
this work. However, the color change remains after I
changed to a different cell. I want to dynamically
change the color of the activecell only

thanks!

-----Original Message-----
Hi
make this
Hi
activecell.interior.colorindex = 3


--
Regards
Frank Kabel
Frankfurt, Germany


Frank Kabel wrote:
Hi
activecell.colorindex = 3


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.

.


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default activecell color

It might be worthy to note that an often undesirable side effect of this is
that you will lose the ability to undo edits as many macros cause the undo
history to zero out.

--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
for this you would need an event procedure. But maybe the following is
what you're looking for:

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



--
Regards
Frank Kabel
Frankfurt, Germany


alldreams wrote:
this work. However, the color change remains after I
changed to a different cell. I want to dynamically
change the color of the activecell only

thanks!

-----Original Message-----
Hi
make this
Hi
activecell.interior.colorindex = 3


--
Regards
Frank Kabel
Frankfurt, Germany


Frank Kabel wrote:
Hi
activecell.colorindex = 3


alldreams wrote:
what is the best way to change the color of the
activecell?

Thanks for your help.
.




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
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
ActiveCell or ActiveSheet Launchnet Excel Worksheet Functions 1 July 20th 07 07:46 PM
activecell offset rvik Excel Programming 1 December 24th 03 07:47 AM
how to set activecell? ljb[_2_] Excel Programming 2 November 18th 03 04:49 PM
Formula with an ActiveCell Sok Hong Excel Programming 3 August 14th 03 08:24 AM


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