cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide column in BEx Analyzer

Former Member
0 Kudos

Hi gurus

In my report I have to show 5 columns depending on a condition.

Is it feasible?

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use VBA Macro to execute Code to hide the columns based on the condition.

This is in 3.5


Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
           'Check you condition 
           If <condition> Then
                   'This will hide Column 3 on Sheet1 where the Query is. 
                   ThisWorkbook.Sheets("Sheet1").Columns(3).Hidden = True 
           End If               
End Sub