Closed Marmootje closed 3 years ago
Thanks! That's very nice. Was thinking about this too, but did not have time to detail it out. Very nice solution. WIll test it and add it. Think I will keep the other implementation (as there are use cases for those) but make this the first option/button in the ribbon.
Thanks again! It's now included in the latest version with some updates. Updated it a little bit so it also works for small tables that are used as shape. If multiple tables are selected the largest (or for the other functions widest/highest) table is the one used for alignment. Also included some additional error handling.
Hi,
I was thinking about the Align objects to table feature and I have written some lines of code based on your module. My solution gives a bit more freedom in my opinion and makes it simpler to use. It makes it possible to align to rows and columns at the same time. It works by looping through each shape and determines to which table cell the shape should be aligned based on the centre of the respective shape. This means the shapes should already be positioned over the table but in my experience this is usually the case anyway. I am submitting this so you could add it to the toolbar if you like the solution.
Thanks again for the amazing add in and I hope I can contribute a bit this way.
` Sub ObjectsAlignToTable()
End Sub `