azizrasul
Well-known Member
- Joined
- Jul 7, 2003
- Messages
- 1,304
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
I have the following SNIPPET of code: -
Set xla = CreateObject("Excel.Application")
Set xlw = xla.Workbooks.Open(strFilename1, ReadOnly:=False)
Set xls = xlw.Worksheets(1)
xls.Cells(lngRow, intCol).Font.Color = 0
xls.Cells(lngRow, intCol).Font.Name = "Trebuchet MS"
I am trying to change the color and thickness of particular cells. Note I haven't given all the code only the bit that's needed to solve the problem (hopefully). The values of lngRow and intCol is determined by other code. Thanks in advance.
Set xla = CreateObject("Excel.Application")
Set xlw = xla.Workbooks.Open(strFilename1, ReadOnly:=False)
Set xls = xlw.Worksheets(1)
xls.Cells(lngRow, intCol).Font.Color = 0
xls.Cells(lngRow, intCol).Font.Name = "Trebuchet MS"
I am trying to change the color and thickness of particular cells. Note I haven't given all the code only the bit that's needed to solve the problem (hopefully). The values of lngRow and intCol is determined by other code. Thanks in advance.