Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Highlighting the cell in Excel!
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Nagesh PV,

You can have an idea of changing cell interior/ font colors in excell sheet from the following code.

Code:
Set  xl=createobject ("excel.application")
set xls=xl.workbooks.add
For i=0 to 54
    xls.sheets(3).cells(i,1)=i
    xls.sheets(3).cells(i,1).interior.colorindex=i
      xls.sheets(3).cells(i,1).Font.colorindex=i+20
Next

xls.saveas""C:\Documents and Settings\rekha\Desktop\Colors.xls""
xls.quit
xl.quit
xls=nothing
xl=nothing



Try this and let us know how it worked for you.
Rekha
Reply


Messages In This Thread
Highlighting the cell in Excel! - by nageshpv - 08-18-2008, 05:08 PM
RE: Highlighting the cell in Excel! - by Rekha - 08-19-2008, 04:31 PM
RE: Highlighting the cell in Excel! - by nageshpv - 08-19-2008, 06:07 PM
RE: Highlighting the cell in Excel! - by nageshpv - 08-19-2008, 06:11 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)