How does one refreshes the screen?

J

John

I have protected a worksheet and disabled selection. The problem is
that cellpointer does not disappear from Range("A1") that I had
selected. If I have another application running eg notepad and place
notepad on top of Range(
"A1") the cellpointer disappears. Is there a way I can refresh the
screen in excel. My code is as follows


Sheet2.activate
Application.Screenupdating = true
With Sheet2
.Range("A1").Select
.EnableSelection = xlNoSelection
.Protect Contents:=True, UserInterfaceOnly:=True
End With

Thnak you
John
 
D

Dave Peterson

It did disappear for me (xl2002 and win98).

maybe adding a "doevents" to your code would help.

But since you don't want any selected cell, how about just

.range("iv65536").select

If it's off the screen, it should offer the same picture.
 

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