cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
whuang
Frequent 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.

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

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

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
================================

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

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

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
Community Hero

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

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
================================

View solution in original post

sonya_m
Community Manager

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

Thank you Alex, Marsha!

 

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


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors