Ask a Question

Anyway to highlight Excel cell background to a different color through TC?

SOLVED
whuang
Regular Contributor

Anyway to highlight Excel cell background to a different color through TC?

Hi again,

 

Does anyone know if it is doable to highlight a cell background color through TC, and how I can do that?

 

Thanks in advance.

3 REPLIES 3
Marsha_R
Community Hero

Record a test and walk through the steps in Excel manually and see what code you get in TC.  You might have to change it from using coordinates to using the cell object name but that should get you close.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
AlexKaras
Community Hero

Hi,

 

Yes, this is doable with the help of Excel's COM object model.

https://www.google.com/search?q=excel+COM+vbscript+change+cell+background

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
sonya_m
SmartBear Alumni (Retired)

Thank you Alex, Marsha!

 

@whuang Please mark the best reply as a solution here!


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: