So need to use C# to create this tool I want for a game. It will involve an interop between Excel and my own program so I can easily tweek values on some items in my program or through excel. So far it's going ok, but when I'm constructing the excel spreadsheet based on certain values I need to copy a lot of pieces back and forth to give it the right number of attributes (I do this just because it was easier to build from a template sheet than to write everything in my own program).

However, after I paste I end up with whatever I last copied still selected and on the clipboard. How do I clear the clipboard?

This might help:

System.Windows.Forms.Clipboard.Clear();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.