• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

Clear Clipboard after Copy/Paste

Joined
5/6/06
Messages
384
Points
28
Does anyone has the VBA code for delete or cear the Clipboad after copy/paste. I tried the
Application.CutCopyMode = False
Doesn't work for me :(

I googled...couldn't find :sos:

Thanks,
 
Are you doing copy/paste in VBA? The code you cited has worked for me when I've done it.

The alternative would be to name the range you want to copy and set a destination range equal to it. Speeding Up Slow Excel VBA Code. Efficient VBA Code/Macros .

Or, perhaps you could do your copy/paste and then copy a blank range. A little lame, but it might work.

Andy, you never cease to amaze me. I didn't know there were two "clipboards."
 
Thanks, Andy and Charlesdwright!
That piece of code works for me finally, after adjusting my codes a little bit.
 
BTW, I am looking for a function code with input: say, a random date (20080714)
output: the nth week of the month. (3rd week in July here)

Anyone has any ideas? thanks,
 
Thank you so much, Andy.

But when I try 6/30/2008...or any other month end...it turns out to be 6!! It's won't work...:(
 
Back
Top