Hi
i am using the macro below to copy and paste some data from one workbook to another.
When the macro runs I get a message box that says
"there is a large amount of info on the clipboard.
To save it on the clipboard click yes
To delete it and free up memory click no"
How can i stop this message from appearing?
also is there a more efficient way to write this code? especially the copy and paste portion. (code below)
Thanks for looking
appreciate any help
John
i am using the macro below to copy and paste some data from one workbook to another.
When the macro runs I get a message box that says
"there is a large amount of info on the clipboard.
To save it on the clipboard click yes
To delete it and free up memory click no"
How can i stop this message from appearing?
also is there a more efficient way to write this code? especially the copy and paste portion. (code below)
Thanks for looking
appreciate any help
John
Code:
Workbooks.Open Filename:="C:\temp\update.xls"
Sheets("udateF").Select
ActiveSheet.Range("b2:f20").Select
Selection.Copy
ActiveWindow.Close
Windows("main data").Activate
Sheets("auto update").Visible = xlSheetVisible
Sheets("auto update").Select
ActiveSheet.Range("b2").Select
ActiveSheet.Paste
Sheets("auto update").Visible = xlSheetVeryHidden
Application.CutCopyMode = False
Sheets("links").Select
MsgBox " UPDATE COMPLETE" & Chr(13) & "Return to the Main Screen"
Sheets("main menu").Select
End Sub