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


I have a spreadsheet with info in abot 100 rows and column
A thru E. I want to be able to click on a row and have a macro butto
that would highlight that row cells A thru E. I know I can highligh
the cells and click on the fill color but I would rather use a macr
button. I tried a macro using activecell but it only highlighted colum
A. .............HEL

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Highlight Cell Macro

palley,

There are probably more concise ways to do this, but.....

Sub TestMe()
Range(Range("A" & ActiveCell.Row), _
Range("E" & ActiveCell.Row)).Interior.ColorIndex = 6
End Sub

should work just fine.
Just assign your button to this macro.

John

"palley" wrote in message
...

I have a spreadsheet with info in abot 100 rows and columns
A thru E. I want to be able to click on a row and have a macro button
that would highlight that row cells A thru E. I know I can highlight
the cells and click on the fill color but I would rather use a macro
button. I tried a macro using activecell but it only highlighted column
A. .............HELP


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



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
Macro to highlight an entire row if a certain value is in a cell Maggie Excel Discussion (Misc queries) 1 January 28th 09 07:29 PM
how to highlight more related cells if cell highlight Jon Excel Discussion (Misc queries) 5 December 21st 08 01:06 PM
Highlight Duplicates, Macro? NPell Excel Worksheet Functions 6 April 9th 08 02:02 PM
Macro to Highlight Range LLoraine Excel Discussion (Misc queries) 2 April 19th 06 02:41 PM
Highlight cells with ctrl-click but only un-highlight one cell hagan Excel Discussion (Misc queries) 5 May 27th 05 06:45 PM


All times are GMT +1. The time now is 06:32 AM.

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"