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
Champion Level 3

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.

AlexKaras
Champion Level 3

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 Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
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: