Hi
What I want to do is to transfer an Excel cell of text (including its formatting) into Word, then parse the text, then send it back to Excel. About 35,000 times. (Why? because processing formatting is about 8 times faster in Word.)
The only way I can see of getting the cell and its text formatting from Excel to Word is to copy/paste it.
My VBA works fine, except that sometimes I get the awful "error 4605 clipboard is empty or not valid" message. Where, when, and how many times this happens appears completely random. I've tried using DoEvents, and Application.CutCopyMode = False, but this makes no difference.
Also, if I break out of the VBA when this occurs, I can manually "Ctrl+V" the offending cell (has marching ants around it) into another Excel cell, but in NotePad or Word nothing gets pasted. Very strange.
Two questions:
1. Is this a known bug in the Windows clipboard? I have Office 2007 and Windows XP. I've noticed that a lot of other people have this problem, but I can't find a solution (like a patch).
2. Is there another way of transferring via VBA the text in an Excel cell to Word, AND keep the text formatting?
Many thanks
Phil