+ Reply to Thread
Results 1 to 4 of 4

format first row within select

  1. #1
    Jackie
    Guest

    format first row within select

    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

  2. #2
    Norman Jones
    Guest

    Re: format first row within select

    Hi Jackie,

    Try:

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

    ---
    Regards,
    Norman



    "Jackie" <[email protected]> wrote in message
    news:[email protected]...
    >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




  3. #3
    Jackie
    Guest

    Re: format first row within select

    Thanks, It works!

    "Norman Jones" wrote:

    > Hi Jackie,
    >
    > Try:
    >
    > With Selection
    > .Rows(1).Font.Bold = True
    > .VerticalAlignment = xlBottom
    > .WrapText = False
    > .Orientation = 0
    > .ShrinkToFit = False
    > .MergeCells = False
    > End With
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Jackie" <[email protected]> wrote in message
    > news:[email protected]...
    > >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

    >
    >
    >


  4. #4
    Jackie
    Guest

    Re: format first row within select

    Thanks, It works!

    "Norman Jones" wrote:

    > Hi Jackie,
    >
    > Try:
    >
    > With Selection
    > .Rows(1).Font.Bold = True
    > .VerticalAlignment = xlBottom
    > .WrapText = False
    > .Orientation = 0
    > .ShrinkToFit = False
    > .MergeCells = False
    > End With
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Jackie" <[email protected]> wrote in message
    > news:[email protected]...
    > >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

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1