Currently going through a VBA tutorial. This lesson involved writing a macro which enters text, copies and pastes the text in more cells, and then empties the clipboard. When I go through the macro stepwise, everything happens correctly and the clipboard empties. When I run the whole thing (F5), everything happens but the emptying of the clipboard.
I'm not so much worried about the code itself, I'm just wondering why a macro would behave differently between the two modes.
Here is the code:
Sub testLesson12c2()
Range("A1").Select
Range("A1").Value = "Test"
Selection.Copy
Range("A2").Select
ActiveSheet.Paste
Range("A3").Select
ActiveSheet.Paste
Range("A4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A1").Select
End Sub
Any help would be appreciated!
Bookmarks