LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default How to stop the screen from 'flashing' when copying and pasting

A bit of background:

I have created a worksheet that allows people to record the relevant details
when carrying out audits. The information that they complete is located in
various cells in the worksheet.

These audits then need to be collated and analyised on a 'master' document.

I have written a Macro that activates the audit form, selects the relevant
cell, copies the information and then activates the master document, pastes
the values of the cell in the next available column, then repeats this
process until all the relevant cells have been copied. An example of the
code is below :

Workbooks("Audit.xls").Activate
Range("C3").Select
Selection.Copy
Workbooks("Master.xls").Activate
Worksheets("VHOOC").Activate
NextColumn = Application.WorksheetFunction.CountA(Range("1:1")) + 1
Cells(1, NextColumn).Select
Selection.PasteSpecial Paste:=xlPasteValues
Workbooks("Audit.xls").Activate
Range("H5:H8").Select
Selection.Copy
Workbooks("Master.xls").Activate
Cells(2, NextColumn).Select
Selection.PasteSpecial Paste:=xlPasteValues
Workbooks("Audit.xls").Activate

etc, etc, etc

I did it like this as the cells that need copying are in multiple ranges and
I don't know how to select many ranges in one go. The above code works and
it does what I want it to. The problem I have is that because it Activates
the worksheets the screen constantly 'flashes' between the two,as it
automates the select copy paste proceedure. Is there a way to stop this?
Can I get excel to select, copy and paste the cells without the screen
changing?


Sorry this goes on a bit but I hope it gives an accurate description of what
I want to stop happening.

I have only been learning the Macro side of things for two weeks out of a
book, so please bear with me!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen "Flashing" on Window change Neal Zimm Excel Discussion (Misc queries) 0 September 28th 06 01:35 PM
Screen flashing why? Chet Excel Discussion (Misc queries) 1 May 16th 06 08:25 PM
remove flashing border after copying cells, how? cjpuckett Excel Discussion (Misc queries) 3 April 23rd 06 04:43 AM
Opening Excel changes screen resolution. How do I stop this ? Hannahspapa Excel Discussion (Misc queries) 1 October 27th 05 02:25 PM
stop macro from flashing sheets frendabrenda1 Excel Discussion (Misc queries) 3 October 11th 05 09:55 PM


All times are GMT +1. The time now is 02:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"