Hello, I wonder if you can help me please?
I have a sheet which has some drawn boxes on there that have macros behind them.
When I click onto the boxes I want them to act as though they are buttons.
They do this by default, but once I put my code behind them, they end up selected (with the squares on each corner).
I can see exactly why this is happening, but I don't know the syntax to stop it.
My code is:
So it is the xxx.select that is causing it.
How can I change this so that it works the same way, but doesn't select the box?
Thank you,
I have a sheet which has some drawn boxes on there that have macros behind them.
When I click onto the boxes I want them to act as though they are buttons.
They do this by default, but once I put my code behind them, they end up selected (with the squares on each corner).
I can see exactly why this is happening, but I don't know the syntax to stop it.
My code is:
Code:
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 21")).Select
Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "Finance (" + CStr(iCount) + ")"
So it is the xxx.select that is causing it.
How can I change this so that it works the same way, but doesn't select the box?
Thank you,