cancel
Showing results for 
Search instead for 
Did you mean: 

Excel VB Code for getting the warning Icon text / Colour

Former Member
0 Kudos

Hi,

Could anyone please help me to get the the warning / error icon color or text ?

I'm using the following code to assign the text or color to a variable which is not working.

WarningMessageText = session.findById("wnd[0]/usr/ssubSUBSCR_1200:SAPLCMFV:1200/tblSAPLCMFVT_MKAL/lblMKAL_AMPEL_X[8,0]").text

Thanks,

Ram

Accepted Solutions (1)

Accepted Solutions (1)

stefan_schnell
Active Contributor
0 Kudos

Hello Ram,

welcome in the SAP Scripting Language forum.

You find a solution here to read the name of the icon. With the name of the icon you can differentiate its colors.

Cheers

Stefan

Former Member
0 Kudos

Hi Stefan,

Today only i could check it.

It worked perfect.

Thanks a ton.

Below is just for your kind information.

Green = S_TL_G

Yellow = S_TL_Y

Red = S_TL_R


Thanks again Stefan.

stefan_schnell
Active Contributor
0 Kudos

Hello Ram,

thanks for sharing this information.

Cheers

Stefan


Answers (0)