Trying to change the picture name in VBA is giving me permission error

K

kenji4861

I have something like this

Sheet1.Shapes(i).Name = "picture" + cstr(i)

But it gives me an permission error (70)

Anyway around this
 
J

Jim Rech

That should work unless that name already belongs to another shape. I get a
permission denied error too in that case.
 
Top