ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   my auto cell hiliting procedure kills copy/paste (https://www.excelbanter.com/excel-programming/351377-my-auto-cell-hiliting-procedure-kills-copy-paste.html)

John

my auto cell hiliting procedure kills copy/paste
 
I have the macro code below that follows the cursor and underlines the active
cell selection row to assist users. But this seems to kill any copy/paste
capability. Is there any easy way around this problem?

Cells.Borders.LineStyle = xlNone
ActiveCell.EntireRow.Borders(xlEdgeBottom).LineSty le = xlContinuous
ActiveCell.EntireRow.Borders(xlEdgeBottom).Weight = xlThick

Jim Thomlinson[_5_]

my auto cell hiliting procedure kills copy/paste
 
Sorry. There is no effective way around it.
--
HTH...

Jim Thomlinson


"John" wrote:

I have the macro code below that follows the cursor and underlines the active
cell selection row to assist users. But this seems to kill any copy/paste
capability. Is there any easy way around this problem?

Cells.Borders.LineStyle = xlNone
ActiveCell.EntireRow.Borders(xlEdgeBottom).LineSty le = xlContinuous
ActiveCell.EntireRow.Borders(xlEdgeBottom).Weight = xlThick


David

my auto cell hiliting procedure kills copy/paste
 
?B?Sm9obg==?= wrote

I have the macro code below that follows the cursor and underlines the
active cell selection row to assist users. But this seems to kill any
copy/paste capability. Is there any easy way around this problem?

Cells.Borders.LineStyle = xlNone
ActiveCell.EntireRow.Borders(xlEdgeBottom).LineSty le =
xlContinuous ActiveCell.EntireRow.Borders(xlEdgeBottom).Weight =
xlThick


Try putting this line ahead of Cells.Borders.LineStyle = xlNone
If Application.CutCopyMode = 1 Then Exit Sub

--
David


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com