Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Formatting
Formatting
Resolved · Low Priority · Version 2003
Formatting
How do you format only the last line of a list of data? For example, if the last line is the total, how do you make sure that only that line is bold if you don't know what line the end line is?For upcoming training course dates see: Pricing & availability
RE: Formatting
Hi FionaThanks for your question
You can select the last line by counting the rows in the current region. So
Range(Cells(Range("A7").CurrentRegion.Rows.Count, 1), _
Cells(Range("A7").CurrentRegion.Rows.Count, 5)).Font.Bold = Truesets the last line font to bold
Hope this helps
Regards
Stephen
Mon 17 May 2010: Automatically marked as resolved.
|
|
» Forum post: Excel 2007 |
Keeping Your Access Database Updated When it comes to changing data, deleting tables or adding lots of new information to your Access database, check out the features that let you complete all these tasks quickly and efficiently. » Article: Access training london |



Course updates

