Cool code! Thanks for LM and Tharwat.
you may need to test if the cell is merged, not sure with com
Cool code! Thanks for LM and Tharwat.
Cool code! Thanks for LM and Tharwat.
You're welcome! :-)
Seemed that GetCellExtents only get the boundary of cell content area, so need to add the horizontal and vertical margins into the the calculation to get the exact cell corner.you may need to test if the cell is merged, not sure with com
A good point - after some brief testing, it would appear that the ActiveX getcellextents method accounts for this if the queried cell is the leftmost/topmost cell of those merged. With this in mind, something like this should suffice:Code - Auto/Visual Lisp: [Select]
) )
Cool code! Thanks for LM and Tharwat.
You're welcome! :-)
Seemed that GetCellExtents only get the boundary of cell content area, so need to add the horizontal and vertical margins into the the calculation to get the exact cell corner.
Doubt I'll ever had a use for this, but it's still pretty damn cool. Well done, Lee.