Is there a maximum size for Windows clipboard data?

A customer had a program that opened a very large spreadsheet in Excel. Very large, like over 300,000 rows. They then selected all of the rows in the very large spreadsheet, copied those rows to the clipboard, and then ran a program that tried to extract the data. The program used the Get­Clipboard­Data function to retrieve the data in Rich Text Format. What they found was that the call to Get­Clipboard­Data was returning NULL. Is there a maximum size for clipboard data?

No, there is no pre-set maximum size for clipboard data. You are limited only by available memory and address space.

However, that’s not the reason why the call to Get­Clipboard­Data is failing.

Edge cases are so much fun to read about – they give so much insight into how certain things are done programmatically, even for a non-programmer such as myself.


  1. 2022-06-27 9:36 pm
    • 2022-06-28 12:15 am
      • 2022-06-28 3:50 am
      • 2022-06-29 2:39 am
  2. 2022-06-28 12:22 am
  3. 2022-06-28 2:21 pm
    • 2022-06-29 1:29 am
  4. 2022-06-28 5:51 pm
    • 2022-06-29 1:24 am
      • 2022-06-29 6:32 pm