LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Bolding Row from VB6

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with formula for bolding font Roger Excel Worksheet Functions 3 December 5th 07 04:08 PM
Bolding when subtotalling mrsteve1 Excel Worksheet Functions 2 February 17th 05 11:26 PM
Bolding text using a check box JCanyoneer Excel Programming 4 October 29th 04 04:10 PM
Bolding Dale[_12_] Excel Programming 2 September 30th 04 04:21 PM
Bolding specific text Scot Rundell Excel Programming 2 September 15th 03 07:20 AM


All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"