[Solved] Macro to paste a specific character
Posted: Wed Mar 12, 2025 6:36 pm
I find the right and left hand curly quotes hard to find in Office Symbol. I want toolbar buttons to paste them. I've done the following, which doesn't work. I thought that if I put ‘ in ".uno:Paste", "‘", 0, Array()) it would work. What is the correct syntax?
Code: Select all
sub curlysingleleft
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "‘", 0, Array())
end sub