G greg.begin Member Aug 30, 2012 #1 how do i name shapes based on cell values? then add a connetor line to a different shape?
Luke M Excel Ninja Staff member Aug 30, 2012 #2 The first part is easy, something like [pre] Code: ActiveSheet.Shapes("Rectangle 1").Name = Range("A2").Value [/pre] The latter is a bit more tricky...you might want to read here: http://peltiertech.com/WordPress/programming-excel-2007-2010-autoshapes-with-vba/ Lots of good references for dealing with shapes, including connectors.
The first part is easy, something like [pre] Code: ActiveSheet.Shapes("Rectangle 1").Name = Range("A2").Value [/pre] The latter is a bit more tricky...you might want to read here: http://peltiertech.com/WordPress/programming-excel-2007-2010-autoshapes-with-vba/ Lots of good references for dealing with shapes, including connectors.
SirJB7 Excel Rōnin Aug 31, 2012 #3 Hi, Greg! In this project I had to paste a lot of images as shapes on a worksheet and needed to handle logical and reasonable names: http://chandoo.org/forum/threads/excel-multilanguage-formula-translator-and-function-reference.4789/ In this link I cut it keeping only the worksheet with the shapes and a worksheet "Work", which has the code involved in the processes of shape handling: https://dl.dropbox.com/u/60558749/vba code working with shapes. (for Greg at chandoo.org).xlsm Hope it helps. Regards! Last edited: Jan 16, 2014
Hi, Greg! In this project I had to paste a lot of images as shapes on a worksheet and needed to handle logical and reasonable names: http://chandoo.org/forum/threads/excel-multilanguage-formula-translator-and-function-reference.4789/ In this link I cut it keeping only the worksheet with the shapes and a worksheet "Work", which has the code involved in the processes of shape handling: https://dl.dropbox.com/u/60558749/vba code working with shapes. (for Greg at chandoo.org).xlsm Hope it helps. Regards!