Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am not an Excel person but have a VB6 routine which writes data to an
Excel sheet and then averages the data as below for each state 310: Set oWB = oXL.Workbooks.Open(sMaster) 330: With oWB.Worksheets("Sheet1") 340: .Cells(lExcelRow + 2, 1) = "AVERAGES FOR" ' NAME 350: .Cells(lExcelRow + 2, 2) = sState ' STATE 360: .Cells(lExcelRow + 2, 3) = rsKPI![AvgNetPL] ' NET P&L etc, etc No problem thus far. I am doing averages in VB because I can't get a formula into Excel using lExcelRow + 2, 3 notation After I put the averages in I want to Bold the row (lExcelRow + 2,13) ie the row with the subtotal All my attempts thus far have failed, probably because I am recording a macro in Excel and trying to modify that code. I'm sure to anyone with a modicum of Excel coding it will be a 10 second answer. Any help appreciated TIA Ian B |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with formula for bolding font | Excel Worksheet Functions | |||
Bolding when subtotalling | Excel Worksheet Functions | |||
Bolding text using a check box | Excel Programming | |||
Bolding | Excel Programming | |||
Bolding specific text | Excel Programming |