I have several subroutines, which start with accessing a selected shape. I want to move that part to an separate, common sub or function, so that I can use e.g.
dim oShape as variant
getSelectedShape(oShape)
Inside such sub I get the shape, but when back from getSelectedShape the parameter oShape is null. How to do it correctly?
I have attached an example document which contains such macro library. For testing select the Fontwork shape and then use the macros from module Main.
FontworkWithMacroLibrary.odp (18.0 KB)