format first row within select

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I try to record macro to format data. My purpose is to every time select a
certain rows and run the macro to format. That part is easy. But I want to
format the first row within the selection to be bold. How can I identify the
first row in the selection?

Please help. Thanks,


With Selection
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.ShrinkToFit = False
.MergeCells = False
End With
 
Hi Jackie,

Try:

With Selection
.Rows(1).Font.Bold = True
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.ShrinkToFit = False
.MergeCells = False
End With
 
Thanks, It works!

Norman Jones said:
Hi Jackie,

Try:

With Selection
.Rows(1).Font.Bold = True
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.ShrinkToFit = False
.MergeCells = False
End With
 

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