
04-17-2014, 10:51 PM
|
Novice
|
|
Join Date: Apr 2014
Posts: 12
|
|
regarding the topic "Convert html links into embedded hyperlinks"
Hi Macropod!
Finally I found a script that is doing exactly what I am looking for. However I am running word2010 and I have document (xxx.doc) with embedded pictures/drawing and links like "
<a href="http://navigator.od.cssdom.com/qlm/ApplicationArchitectureDiagram/41b70962-78e3-460c-bd5d-f9d30ca6d639.html" target="_blank">Link to diagram in navigator</a>
" in the document that I would like to replace as hyperlinks (and in Italic preferably).
When I run you script I get an error on the line ".Execute Replace:=wdReplaceAll" saying "Run Time Error '5560': "The FIND What text contains a Pattern Match expression which is not valid". I have tried with another text pattern one ".text = "\<[Aa]*href=['""](*)['""]*\>(*)\</[Aa]\>" and that work but I run later into other problem in the code so I guess it must have the correct text pattern. Could the problem be that I have hyperlinks already in the document in terms of embedded pictures. See attached files. I would very much appreciate if you have time to look at my problem.
Kind regards
Benble
run time error 5560.jpg
codesnippet.jpg
part of doc.jpg
|