Bold

  • Thread starter Thread starter smandula
  • Start date Start date
S

smandula

How do you make Character "B" Bold

Sub BonusNumbering()
Dim cell As Range
Dim lRow As Long
Dim lColumn As Long
Application.ScreenUpdating = False
For Each cell In _
Range("AW2:AW" & _
Range("AW65536").End(xlUp).Row)
lRow = cell.Row
lColumn = cell.Value + 1
Cells(lRow, lColumn) = "B"
Next 'cell
Application.ScreenUpdating = True
End Sub

With Thanks
 
Range(lRow, lColumn).Select
Selection.Font.Bold = True
This will make the text in the cell bold.
 
For Each cell In _
Range("A2:A" & Cells(Rows.Count, "a").End(xlUp).Row)
With Cells(cell.Row, cell + 1)
.Value = "B"
.Font.Bold = True
End With
Next cell
===
OR
=======
For i = 2 To Cells(Rows.Count, "a").End(xlUp).Row
With Cells(i, Cells(i, "a") + 1)
..Value = "B"
..Font.Bold = True
End With
next i
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top