Skip to content

Instantly share code, notes, and snippets.

View Tintazul's full-sized avatar

Júlio Reis Tintazul

View GitHub Profile
@Tintazul
Tintazul / StraightQuotes2CurlyQuotes.bas
Last active December 19, 2019 07:59 — forked from dajare/StraightQuotes2CurlyQuotes.bas
LibreOffice Macro: straight single and double quotes to curly ones
sub StraightQuotes2CurlyQuotes
' Kudos to David for main code: https://gist.github.com/dajare/3924560
' Kudos to Villeroy for simpler, better find patterns:
' https://forum.openoffice.org/en/forum/viewtopic.php?f=30&t=39902
' Kudos to Kaloian Droganov for how to make the macro atomic:
' http://stackoverflow.com/questions/853372/how-to-make-a-macro-atomic
rem ----------------------------------------------------------------------
dim document as object
dim dispatcher as object
dim undo as object