Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8545

Convert VBA to ABAP

$
0
0

Hi experts,

 

I'm trying to make a gradient (mix of colours) in Excel from SAP. The code of the Excel macro is the following:

 

Sub Macro1()

'

' Macro1 Macro

'

 

 

'

    Range("J36").Select

    With Selection.Interior

        .Pattern = xlPatternLinearGradient

        .Gradient.Degree = 0

        .Gradient.ColorStops.Clear

    End With

    With Selection.Interior.Gradient.ColorStops.Add(0)

        .Color = 255

        .TintAndShade = 0

    End With

    With Selection.Interior.Gradient.ColorStops.Add(1)

        .Color = 65535

        .TintAndShade = 0

    End With

End Sub

 

___________

 

Could anybody help me to translate this code to ABAP? My issue is when I must mix the 2 colors.

 

Thanks.


Viewing all articles
Browse latest Browse all 8545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>