View Single Post
 
Old 07-16-2018, 01:35 PM
Ken Leidner's Avatar
Ken Leidner Ken Leidner is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Sep 2016
Posts: 7
Ken Leidner is on a distinguished road
Default Alot of Flashes changing windows

Let me describe the task I am performing and then my problem, rather than the code. I have a word document that has groups of paragraphs that need to be re-ordered. Generally a group has about 5 or 6 paragraphs and there are about 350 such groups. The process is to find the next group and then place it into a new document, and repeat for the 350 groups. Along the way from time to time a new section will be created (Chapters). There are about 9 chapters.



I have many Application.ScreenUpdating = False statements but I still get screen flashing. I expect it is as I am changing from the source document’s window to the new document’s window. IE) Windows(ii).Activate or Windows(i).Activate where I and II have been set from ActiveWindow.Index statements.



Can this be fixed? At 700 flashes it looks like the computer is crashing or has a virus. Would using a different way to switch between the two documents work? IE) Documents(name).active be better?



The macro works, but has a visual issue for what seems like forever.
Reply With Quote