Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need help to create a program in Excel 2003 that will check the number in
one cell, and if more that ten, change the format of a previous cell in the same row to bold. And then continue to do the same until the end of the spreadsheet. So the first Yes in column A will be bold but not the second Yes A B C D Yes xx yy 11 Yes xx yy 09 Thanks BigAl |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub BoldFont() Dim lLR As Long Dim l4Row As Long lLR = Cells(Rows.Count, "a").End(xlUp).Row For l4Row = 1 To lLR Step 1 If Cells(l4Row, "d").Value 10 Then Cells(l4Row, "a").Font.Bold = True Else Cells(l4Row, "a").Font.Bold = False End If Next l4Row End Sub -- mudraker If my reply has assisted or failed to assist you I welcome your Feedback. www.thecodecage.com ------------------------------------------------------------------------ mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=43607 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works like a charm. Thanks for your expertise.
BigAl "mudraker" wrote: Sub BoldFont() Dim lLR As Long Dim l4Row As Long lLR = Cells(Rows.Count, "a").End(xlUp).Row For l4Row = 1 To lLR Step 1 If Cells(l4Row, "d").Value 10 Then Cells(l4Row, "a").Font.Bold = True Else Cells(l4Row, "a").Font.Bold = False End If Next l4Row End Sub -- mudraker If my reply has assisted or failed to assist you I welcome your Feedback. www.thecodecage.com ------------------------------------------------------------------------ mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=43607 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() thanks for confirming the code solved your problem -- mudraker If my reply has assisted or failed to assist you I welcome your Feedback. www.thecodecage.com ------------------------------------------------------------------------ mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=43607 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check 3 cells, only one of the cells my be filled | Excel Worksheet Functions | |||
Copy Source Cells to Destination Cells Only when a Change Occurs | Excel Discussion (Misc queries) | |||
Cells won't change font color or show hi-lighted cells in document | Excel Discussion (Misc queries) | |||
How to change shade of cells when selecting multiple cells | Excel Discussion (Misc queries) | |||
Change font and background color of several cells based on result of a formula | Excel Discussion (Misc queries) |