Suppress the movement on the sheet

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

Suppress the movement on the sheet

Post by sal21 »

I use a code to loop on the sheets in the workbook and make variuos operation, copy,paste, delete ecc...
But during this operation have the "flipping" effect...
I have used:
Application.DisplayAlerts = False
Application.EnableEvents = False
....code
Application.DisplayAlerts = true
Application.EnableEvents = true

but without success!!!

Exists other mode?

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Suppress the movement on the sheet

Post by HansV »

Try adding

Application.ScreenUpdating = False

at the beginning, and

Application.ScreenUpdating = True

at the end.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

Re: Suppress the movement on the sheet

Post by sal21 »

HansV wrote:Try adding

Application.ScreenUpdating = False

at the beginning, and

Application.ScreenUpdating = True

at the end.
ok work now!
And to suppress "flipping/flikkering" of cursor?
Existis a method similar VB6....

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Suppress the movement on the sheet

Post by HansV »

You might try

Application.Cursor = xlWait

at the beginning and

Application.Cursor = xlDefault

at the end, but you probably can't suppress the flickering entirely.
Best wishes,
Hans