excel macro to turn text in cell upside down

Alwinaz

Board Regular
Joined
Feb 7, 2012
Messages
201
hi there

I found this code to turn a wordart text upside down. How do edit it to turn the content of cell m37 upside down.

here is the code:
Code:
Sub upSidn()
Dim n As Object
Application.ScreenUpdating = False
Set n = ActiveSheet.Shapes.AddTextEffect(PresetTextEffect:=msoTextEffect1, _
 Text:="Whassup?", FontName:="Arial Black", FontSize:=8, FontBold:=msoFalse, _
 FontItalic:=msoFalse, Left:=3, Top:=3)
n.Rotation = 180
End Sub
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I would be interested to see how that would work for a cell :)

As far as I know you cant do that, except you play really smart and put a textbox(without borders) inside the cell and then flip it vertically and make it appear like it was actually the cell value that was flipped(Not that i have ever tried this)
 
Upvote 0
Try this code,

Code:
Sub up_side_text()


Dim cel As Range
Dim shpOval As Shape

[COLOR=#0000cd]Set cel = Range("M37")[/COLOR]

ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, cel.Left, cel.Top, cel.Width, cel.Height).Select
With Selection.ShapeRange
[COLOR=#0000cd]        .TextFrame2.TextRange.Characters.Text = "Whazzup"[/COLOR]
        .Line.Visible = msoTrue
        .IncrementRotation 180
        .TextFrame2.VerticalAnchor = msoAnchorBottom
        .TextFrame2.TextRange.ParagraphFormat.Alignment = msoAlignCenter
        .TextFrame2.VerticalAnchor = msoAnchorMiddle
End With
Range("M37").Select

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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