mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
Hi All
I have a shape that when i run the macro, the shape gets smaller so its like its sliding open
for i = 500 to 1 step -5
DoEvents
worksheets("mysheet").shapes("moveleft").width = i
nexi i
What i want to do is have that same effect on my shape named moveright but get the shape to move right when decreasing so its like the shape is opening like a sliding door going right
please help me get this effect because by flipping the variable wont work
ie i = 1 to 500
I have a shape that when i run the macro, the shape gets smaller so its like its sliding open
for i = 500 to 1 step -5
DoEvents
worksheets("mysheet").shapes("moveleft").width = i
nexi i
What i want to do is have that same effect on my shape named moveright but get the shape to move right when decreasing so its like the shape is opening like a sliding door going right
please help me get this effect because by flipping the variable wont work
ie i = 1 to 500