IN MS OFFICE WORD WE CAN DO TEXT HIGHLIGHT AND REMOVE TEXT HIGHLIGHT BY SELECTING AND DESELECTING THE TEXT HIGHLIGHT BUTTON RESPECTIVELY, NO NEED TO OPEN & GO FOR "NO FILL" OPTION. BUT IN LIBRE OFFICE WRITER WE CAN DO TEXT HIGHLIGT BY ONE TOUCH, BUT TO REMOVE THAT HIGHLIGHT WE NEED TO OPEN THE DROP DOWN AND GO FOR "NO FILL" OPTION, WHICH TAKES SOMETIME FOR US.
Created attachment 102568 [details] IMAGE-1
Created attachment 102569 [details] IMAGE-2
Created attachment 102570 [details] IMAGE-3
Created attachment 102571 [details] IMAGE-4
Ok, I understand what you mean. I set status NEW to this enhancement request. In the meantime you can use this macro and assign it to a keyboard shortcut or to a toolbar custom button. Sub RemoveTextHighlighting dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:BackColor", "", 0, Array()) End Sub P.S. check your Caps Lock key :-)
(In reply to comment #5) Hi tommy, I tried your macro but it does not work. So I have done some change to your code, now it works: Sub RemoveTextHighlighting Dim document as object Dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") REM We need to define the args for the dispatcher. without this the backcolor will not change. Dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).name = "BackColor" args1(0).value = -1 dispatcher.executeDispatch(document, ".uno:BackColor", "", 0,args1()) End Sub Thanks.
@Kevin strange. I confirm my macro works and does remove "text highlighting" under Win7x64 using LibO 4.2.5.2. your macro version works fine too. would you please tell me your O/S and LibO version? I'm curious about the reason it doesn't work in your computer.
(In reply to comment #7) > would you please tell me your O/S and LibO version? I'm curious about the > reason it doesn't work in your computer. Windows XP SP3, LibreOffice 4.3.0.2.
thanks. I confirm macro works in 4.2.5.2 on WinXP 32bit. I'll try later the 4.3.0.2 release and see if there's some basic issue in the new branch, and if confirmed I'll open a separate report about it.
*** This bug has been marked as a duplicate of bug 63438 ***