Hi All,
I'm trying to show the inverse percentage of a number, and I am struggling to figure out how to do it. Can you please give a it a look and let me know if you can help me. So basically what I'm trying to achieve is if its comes up as 99% I would like it to show as 1%. Here is the Macro which convert the numbers into percentage.
Sub Convert2019VariancePercentage()
'
' Convert2019VariancePercentage Macro
'
'
Range("R:R,U:U,X:X,AA:AA,AD:AD").Select
Range("AD1").Activate
ActiveWindow.SmallScroll ToRight:=8
Range("R:R,U:U,X:X,AA:AA,AD:AD,AG:AG,AJ:AJ,AM:AM").Select
Range("AM1").Activate
ActiveWindow.SmallScroll ToRight:=12
Range("R:R,U:U,X:X,AA:AA,AD:AD,AG:AG,AJ:AJ,AM:AM,AP:AP,AS:AS,AV:AV,AY:AY"). _
Select
Range("AY1").Activate
ActiveWindow.SmallScroll ToRight:=5
ActiveWindow.ScrollColumn = 39
ActiveWindow.ScrollColumn = 35
ActiveWindow.ScrollColumn = 31
ActiveWindow.ScrollColumn = 28
ActiveWindow.ScrollColumn = 24
ActiveWindow.ScrollColumn = 20
ActiveWindow.ScrollColumn = 16
ActiveWindow.ScrollColumn = 12
ActiveWindow.ScrollColumn = 1
Selection.NumberFormat = "0.0%"
ActiveWindow.ScrollColumn = 43
ActiveWindow.ScrollColumn = 39
ActiveWindow.ScrollColumn = 35
ActiveWindow.ScrollColumn = 31
ActiveWindow.ScrollColumn = 28
ActiveWindow.ScrollColumn = 24
ActiveWindow.ScrollColumn = 16
ActiveWindow.ScrollColumn = 12
ActiveWindow.ScrollColumn = 1
Range("P4:P5").Select
End Sub
Many Thanks
gergo1001
I'm trying to show the inverse percentage of a number, and I am struggling to figure out how to do it. Can you please give a it a look and let me know if you can help me. So basically what I'm trying to achieve is if its comes up as 99% I would like it to show as 1%. Here is the Macro which convert the numbers into percentage.
Sub Convert2019VariancePercentage()
'
' Convert2019VariancePercentage Macro
'
'
Range("R:R,U:U,X:X,AA:AA,AD:AD").Select
Range("AD1").Activate
ActiveWindow.SmallScroll ToRight:=8
Range("R:R,U:U,X:X,AA:AA,AD:AD,AG:AG,AJ:AJ,AM:AM").Select
Range("AM1").Activate
ActiveWindow.SmallScroll ToRight:=12
Range("R:R,U:U,X:X,AA:AA,AD:AD,AG:AG,AJ:AJ,AM:AM,AP:AP,AS:AS,AV:AV,AY:AY"). _
Select
Range("AY1").Activate
ActiveWindow.SmallScroll ToRight:=5
ActiveWindow.ScrollColumn = 39
ActiveWindow.ScrollColumn = 35
ActiveWindow.ScrollColumn = 31
ActiveWindow.ScrollColumn = 28
ActiveWindow.ScrollColumn = 24
ActiveWindow.ScrollColumn = 20
ActiveWindow.ScrollColumn = 16
ActiveWindow.ScrollColumn = 12
ActiveWindow.ScrollColumn = 1
Selection.NumberFormat = "0.0%"
ActiveWindow.ScrollColumn = 43
ActiveWindow.ScrollColumn = 39
ActiveWindow.ScrollColumn = 35
ActiveWindow.ScrollColumn = 31
ActiveWindow.ScrollColumn = 28
ActiveWindow.ScrollColumn = 24
ActiveWindow.ScrollColumn = 16
ActiveWindow.ScrollColumn = 12
ActiveWindow.ScrollColumn = 1
Range("P4:P5").Select
End Sub
Many Thanks
gergo1001