![]() ![]() If the following macro is location=document: If l2.TextField.supportsService(".textfield.URL") Then If IsMissing(pRgs) Then pRgs = ThisComponent.CurrentSelection Formatting of text portions not preserved. See yourself and post your better ideas: Sub removeLinkageFromCellTextFieldURLContentIgnorigPartialFormatting(Optional pRgs) To remove links (more than one per cell probably) from a cell preserving diffrent formatting of parts is rather complicated, and due to strange observations the code I ended up with may not be exactly reliable. It’s rather simple to “destroy” the links if partial formatting of cell texts is meaningless. However, I made a tour into the API, and have to admit that I didn’t find an easy way to do by user code for Calc what’s needed. One may be the fact that hyperlinks are very differently implemented in Calc and in Writer (e.g.) I cannot see the reasons for the delay with this obviously relevant feature. tdf#66694 is more than 7 years old, and has a respectable ‘See also’. There surely are additional threads in the bug tracker. Quoting : “’…this inability to remove a hyperlink is a known bug.’ Link, please?” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |