Yes...you are right it is a shape. The code I am using
For creating the textBox (for now I am just using dummy text)
Sheets("zdroj").Shapes.AddTextbox(msoTextOrientationHorizontal, 50.5, 95.25, 203.25, 111).Select
With Selection
.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "TOTO JE TEXT A"
.Name = "nucem1"
End With
Then for deciding which text to paste
If Sheets("vypocet").Range("B221") < 10 Then
Sheets("zdroj").Shapes("nucem2").Copy
Sheets("sablona").Range("D24").PasteSpecial
'Sheets("sablona").Shapes("nucem2").Select
'With Selection
'.Name = "AktivObject1"
'End With
But as soon as it is pasted to the new sheet, I cannot select it and thus cannot delete it. I wanted to add something to Paste otions but couldnt find any code to keep formating and name of the copied shape.
Bookmarks