Hey guys, another newbie question for you.
I'm looking to add some color to excel sheets generated by a module.
I've been doing 100% of my VBA in access, working with recordsets, tables and what not, but what is the proper way to interact with Excel via Access VBA?
The main goal of what I want to do is color a row based on a column's field. So if field "Color" = Blue then that whole row would be colored blue.
This is all I have at the moment.
But at this point I don't know how to manipulate information in this environment. Would someone be able to point me to a good tutorial or offer up a suggestion?
Thanks guys!
I'm looking to add some color to excel sheets generated by a module.
I've been doing 100% of my VBA in access, working with recordsets, tables and what not, but what is the proper way to interact with Excel via Access VBA?
The main goal of what I want to do is color a row based on a column's field. So if field "Color" = Blue then that whole row would be colored blue.
This is all I have at the moment.
Code:
Sub ColorCells(Path As String)
Dim oExcel As Object
Dim oWB As Workbook
Set oExcel = CreateObject(Excel.Application)
Set oWB = oExcel.Workbooks.Open(Path)
End Sub
Thanks guys!