View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tonso Tonso is offline
external usenet poster
 
Posts: 90
Default If clipboard is empty..

I have an XL 2013 workbook into which I paste data from an intranet webpage.
If a user forgets to copy the data before invoking the macro that pastes the data into the workbook and manipulates it, they get the Run-time error 1004.
When the user invokes the macro with the clipboard empty, I would like foe the macro to either end, or better yet, activate a message-box that tell the user what the problem is [empty clipboard], then exits the macro. How can I accomplish this?

Thanks,
Tonso