Send to back in VBA

melewie

Board Regular
Joined
Nov 21, 2008
Messages
188
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have a shape on a worksheet (called Block_Help) I would like to send this to the back or front deppending on a few diffrent things.

Does any one have any ideas? A recorded macro is blank!

any help would be great.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Here's what the macro recorder gave me (Excel 2000):

Code:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 26/04/2010 by apoulsom
'
'
    ActiveSheet.Shapes("Block_Help").Select
    Selection.ShapeRange.ZOrder msoSendToBack
End Sub
 
Upvote 0
Here's what the macro recorder gave me (Excel 2000):

Code:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 26/04/2010 by apoulsom
'
'
    ActiveSheet.Shapes("Block_Help").Select
    Selection.ShapeRange.ZOrder msoSendToBack
End Sub

Thanks that works perfectly

when I recored a macro it was blank!! im using excel 2007 does this make a diffrence?
 
Upvote 0
It could well have made a difference as the macro recorder certainly doesn't work with charts in xl2007.

that could be a pain I use my recorder quite alot to help me with VBA :(

does any one know what else xl2007 cant record on?
 
Upvote 0
See this less than helpful MSKB article.
 
Upvote 0

Forum statistics

Threads
1,213,583
Messages
6,114,490
Members
448,575
Latest member
hycrow

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top