VBA - Clear the clipboard before closing file

  • Thread starter Thread starter dipsy
  • Start date Start date
D

dipsy

Hi! I have a template where I have allowed users to
insert rows.
I use the following code:

Range("a52").Select
Selection.EntireRow.Insert
Rows("53:53").Copy
Rows("52:52").Select
Selection.PasteSpecial Paste:=xlFormulas,
Operation:=xlNone, SkipBlanks:= False, Transpose:=False
Range("a2").Select



However, when the user closes the file - there is a huge
amt of data on the clip board and I do not want the user
to get the message - is there a way for me to clear the
information on the clip board?

Also what does "Application.CutCopyMode = False" do?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top