Help please

D

Doug

I just started using this macro to highlight a particular row that I click on
in a table. Does anyone know why it clears the undo capability? If I make any
changes to my table, I cannot go back.

Const TableRangeAddress As String = "A2:AJ203"
Dim TableRange As Range
On Error GoTo Whoops
Application.ScreenUpdating = False
Set TableRange = Range(TableRangeAddress)
TableRange.Borders.LineStyle = xlLineStyleNone
If Intersect(Target, TableRange) Is Nothing Then Exit Sub
Intersect(Target.EntireRow, TableRange).BorderAround Weight:=xlMedium
Whoops:
Application.ScreenUpdating = True

End Sub
--
 
D

Doug

The code highlights a row that I click on. It doesn't make sense that it
would keep me from being able to undo changes. Also if I need to copy and
paste something, when I click paste, it forgets what I copied. I may just
stop using it. As convenient as it is, It is a problem also.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top