This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
I have a microsoft word document. In my document, some paragraphs contain the string<@@>. I want to write a macro that will search my document for the string <@@>. When it finds a paragraph which contains this string, it should copy the paragraph and then paste as hyperlink at the top of the document. It should repeat this process until it cannot find the string <@@>.
I tried this code but I keep getting the error message
Run-time error '4605'
This method or property is not available because the Clipboard is empty or not valid.
The problem is this line
I don't get any error message when I replace it with this line, but I don't want an ordinary paste; I want to paste as hyperlink