Here is my data:
1 3 4 1 5 2
2 4 7 1 0 2
3 4 1 8 2 1
I want to create a 3D column map so that the height of column in the location of the cell is proportional to the value in the cell. For example column height at (2,1) = 3*10 and at (5,2) = 0*10. Run the macro below to see what im trying to do.
Note: The following macro will do it but it draws the map upside down and it impossible to clearly see the heights of all the bars:
Sub ColumnMap2()
For Each c In ActiveCell.CurrentRegion.Cells
magnitude = Abs(c.Value)
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 100 + (10 * c.Column), (150 + (10 * c.Row)), 10, 10).Select
Selection.ShapeRange.ThreeD.Visible = msoTrue
Selection.ShapeRange.ThreeD.Depth = 10 * magnitude
Selection.ShapeRange.ThreeD.SetExtrusionDirection msoExtrusionBottomRight
Next c
Map = ActiveSheet.Shapes.SelectAll()
Selection.Group
End Sub
Is there a way to flip the map? Or can you think of a better way of doing this?
Thanks for your help
1 3 4 1 5 2
2 4 7 1 0 2
3 4 1 8 2 1
I want to create a 3D column map so that the height of column in the location of the cell is proportional to the value in the cell. For example column height at (2,1) = 3*10 and at (5,2) = 0*10. Run the macro below to see what im trying to do.
Note: The following macro will do it but it draws the map upside down and it impossible to clearly see the heights of all the bars:
Sub ColumnMap2()
For Each c In ActiveCell.CurrentRegion.Cells
magnitude = Abs(c.Value)
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 100 + (10 * c.Column), (150 + (10 * c.Row)), 10, 10).Select
Selection.ShapeRange.ThreeD.Visible = msoTrue
Selection.ShapeRange.ThreeD.Depth = 10 * magnitude
Selection.ShapeRange.ThreeD.SetExtrusionDirection msoExtrusionBottomRight
Next c
Map = ActiveSheet.Shapes.SelectAll()
Selection.Group
End Sub
Is there a way to flip the map? Or can you think of a better way of doing this?
Thanks for your help