Forum Discussion

cindix's avatar
cindix
Copper Contributor
Nov 04, 2023

Selecting a shape and changing its attributes

Hi!

 

I'm looking for a way to, when selecting a text box/shape, be able to just apply a macro to format it, to a specific background color, with no border, and some basic shadow.

I can't seem to find a way to do that to a random text box, meaning, I would not have the object name to refer it in the macro. 

So, I need the macro identify the object that I'm selecting and then apply what I want to it.

 

Thanks in advance.

  • Charles_Kenyon's avatar
    Charles_Kenyon
    Bronze Contributor

    cindix 

    Why not simply create a text box formatted the way you want and add it to your Text Boxes Gallery?

    • cindix's avatar
      cindix
      Copper Contributor
      That would only work for inserting a new text box. I want to be able to format an existing one.
      • Charles_Kenyon's avatar
        Charles_Kenyon
        Bronze Contributor
        Try selecting a text box, recording a macro, and using that macro.
    • cindix's avatar
      cindix
      Copper Contributor
      That is the kind of work I'm trying to avoid, by using the macros.

Resources