Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Having an entire row highlighted as I move from cell to cell

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Having an entire row highlighted as I move from cell to cell

Luthdawg,

Here is a code that I googled, it seems to work just fine, however, it will
remove all background coloring as it works. It will leave borders, just the
fill will be removed. Place this into your VBA Editor (Alt+F11) into the
ThisWorkbook Module. I would recommend that you test this on a backup copy
before you implement the changes.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'right click the tab of the sheet you are working in
'and select view code
'paste this code into the sheet
'repeat for mutiple sheets
'this works but existing color formats are lost

Static LastChange
Application.ScreenUpdating = False

If LastChange = Empty Then
LastChange = ActiveCell.Address
End If

Range(LastChange).EntireColumn.Interior.ColorIndex = xlNone
Range(LastChange).EntireRow.Interior.ColorIndex = xlNone

ActiveCell.EntireColumn.Interior.ColorIndex = 15
ActiveCell.EntireRow.Interior.ColorIndex = 15

LastChange = ActiveCell.Address

Application.ScreenUpdating = True

End Sub

Source:http://www.mrexcel.com/archive/VBA/26758.html

--
--Thomas [PBD]
Working hard to make working easy.


"Luthdawg" wrote:

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Having an entire row highlighted as I move from cell to cell


You can always look at the ADDRESS BOX on the top left of the Window to see
which cell you are currently in...




"Thomas [PBD]" wrote:

Luthdawg,

Here is a code that I googled, it seems to work just fine, however, it will
remove all background coloring as it works. It will leave borders, just the
fill will be removed. Place this into your VBA Editor (Alt+F11) into the
ThisWorkbook Module. I would recommend that you test this on a backup copy
before you implement the changes.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'right click the tab of the sheet you are working in
'and select view code
'paste this code into the sheet
'repeat for mutiple sheets
'this works but existing color formats are lost

Static LastChange
Application.ScreenUpdating = False

If LastChange = Empty Then
LastChange = ActiveCell.Address
End If

Range(LastChange).EntireColumn.Interior.ColorIndex = xlNone
Range(LastChange).EntireRow.Interior.ColorIndex = xlNone

ActiveCell.EntireColumn.Interior.ColorIndex = 15
ActiveCell.EntireRow.Interior.ColorIndex = 15

LastChange = ActiveCell.Address

Application.ScreenUpdating = True

End Sub

Source:http://www.mrexcel.com/archive/VBA/26758.html

--
--Thomas [PBD]
Working hard to make working easy.


"Luthdawg" wrote:

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Having an entire row highlighted as I move from cell to cell

Another way is to use the macro at
http://www.cpearson.com/Excel/excelM...ightActiveCell


"Sheeloo" wrote:


You can always look at the ADDRESS BOX on the top left of the Window to see
which cell you are currently in...




"Thomas [PBD]" wrote:

Luthdawg,

Here is a code that I googled, it seems to work just fine, however, it will
remove all background coloring as it works. It will leave borders, just the
fill will be removed. Place this into your VBA Editor (Alt+F11) into the
ThisWorkbook Module. I would recommend that you test this on a backup copy
before you implement the changes.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'right click the tab of the sheet you are working in
'and select view code
'paste this code into the sheet
'repeat for mutiple sheets
'this works but existing color formats are lost

Static LastChange
Application.ScreenUpdating = False

If LastChange = Empty Then
LastChange = ActiveCell.Address
End If

Range(LastChange).EntireColumn.Interior.ColorIndex = xlNone
Range(LastChange).EntireRow.Interior.ColorIndex = xlNone

ActiveCell.EntireColumn.Interior.ColorIndex = 15
ActiveCell.EntireRow.Interior.ColorIndex = 15

LastChange = ActiveCell.Address

Application.ScreenUpdating = True

End Sub

Source:http://www.mrexcel.com/archive/VBA/26758.html

--
--Thomas [PBD]
Working hard to make working easy.


"Luthdawg" wrote:

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Having an entire row highlighted as I move from cell to cell

Sheelo,

This is a great code (I might actually use it for some things), but I think
he didnt want to highlight that cell, but the row itself. If needed, we can
amend the code to not highlight the Column.

--
--Thomas [PBD]
Working hard to make working easy.


"Sheeloo" wrote:

Another way is to use the macro at
http://www.cpearson.com/Excel/excelM...ightActiveCell


"Sheeloo" wrote:


You can always look at the ADDRESS BOX on the top left of the Window to see
which cell you are currently in...




"Thomas [PBD]" wrote:

Luthdawg,

Here is a code that I googled, it seems to work just fine, however, it will
remove all background coloring as it works. It will leave borders, just the
fill will be removed. Place this into your VBA Editor (Alt+F11) into the
ThisWorkbook Module. I would recommend that you test this on a backup copy
before you implement the changes.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'right click the tab of the sheet you are working in
'and select view code
'paste this code into the sheet
'repeat for mutiple sheets
'this works but existing color formats are lost

Static LastChange
Application.ScreenUpdating = False

If LastChange = Empty Then
LastChange = ActiveCell.Address
End If

Range(LastChange).EntireColumn.Interior.ColorIndex = xlNone
Range(LastChange).EntireRow.Interior.ColorIndex = xlNone

ActiveCell.EntireColumn.Interior.ColorIndex = 15
ActiveCell.EntireRow.Interior.ColorIndex = 15

LastChange = ActiveCell.Address

Application.ScreenUpdating = True

End Sub

Source:http://www.mrexcel.com/archive/VBA/26758.html

--
--Thomas [PBD]
Working hard to make working easy.


"Luthdawg" wrote:

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Having an entire row highlighted as I move from cell to cell

Actually the rowliner link at the bottom of that link looks awesome. I'm
trying it out right now.

"Thomas [PBD]" wrote:

Sheelo,

This is a great code (I might actually use it for some things), but I think
he didnt want to highlight that cell, but the row itself. If needed, we can
amend the code to not highlight the Column.

--
--Thomas [PBD]
Working hard to make working easy.


"Sheeloo" wrote:

Another way is to use the macro at
http://www.cpearson.com/Excel/excelM...ightActiveCell


"Sheeloo" wrote:


You can always look at the ADDRESS BOX on the top left of the Window to see
which cell you are currently in...




"Thomas [PBD]" wrote:

Luthdawg,

Here is a code that I googled, it seems to work just fine, however, it will
remove all background coloring as it works. It will leave borders, just the
fill will be removed. Place this into your VBA Editor (Alt+F11) into the
ThisWorkbook Module. I would recommend that you test this on a backup copy
before you implement the changes.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'right click the tab of the sheet you are working in
'and select view code
'paste this code into the sheet
'repeat for mutiple sheets
'this works but existing color formats are lost

Static LastChange
Application.ScreenUpdating = False

If LastChange = Empty Then
LastChange = ActiveCell.Address
End If

Range(LastChange).EntireColumn.Interior.ColorIndex = xlNone
Range(LastChange).EntireRow.Interior.ColorIndex = xlNone

ActiveCell.EntireColumn.Interior.ColorIndex = 15
ActiveCell.EntireRow.Interior.ColorIndex = 15

LastChange = ActiveCell.Address

Application.ScreenUpdating = True

End Sub

Source:http://www.mrexcel.com/archive/VBA/26758.html

--
--Thomas [PBD]
Working hard to make working easy.


"Luthdawg" wrote:

I am entering and analyzing data within an excel spreadsheet. Sometimes, due
to the size of the document I have trouble determining what row I am looking
at. Is there a way to have the row highlighted while I move from cell to
cell.

Ex: I am in cell R12 - entire Row 12 is highlighted, then i move to cell
R13 and Row 13 becomes highlighted.


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
check first cell in row, move entire row to sheet of that name Billyshuvl Excel Worksheet Functions 1 September 27th 07 02:07 PM
Highlight 1 cell in Excel & move mouse-stays highlighted - stop? Patriot Excel Discussion (Misc queries) 2 January 16th 06 10:49 PM
I click on a cell and move the cursor the entire area highlights Pam Excel Discussion (Misc queries) 2 June 20th 05 10:22 PM
The Aarow keys move the entire sheet instead of to the next cell Ric Charts and Charting in Excel 1 April 26th 05 12:33 AM
arrow keys move entire sheet instead of cell to cell gbeard Excel Worksheet Functions 2 April 13th 05 04:59 PM


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