Results 1 to 4 of 4

VBA to remove formatting

This is a discussion on VBA to remove formatting within the Excel Questions forums, part of the Question Forums category; Hi i am after a VBA code that will remove all formatting including borders from Range A7:L...

  1. #1
    Board Regular
    Join Date
    May 2008
    Posts
    453

    Default VBA to remove formatting

    Hi i am after a VBA code that will remove all formatting including borders from Range A7:L

  2. #2
    MrExcel MVP Tom Urtis's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, California USA
    Posts
    11,008

    Default Re: VBA to remove formatting

    You can record a macro to select that range and from the worksheet menu click Edit > Clear > Formats.

  3. #3
    Board Regular Trevor G's Avatar
    Join Date
    Jul 2008
    Location
    Tamworth, Staffordshire
    Posts
    5,751

    Default Re: VBA to remove formatting

    Why not record a macro that will do the removing for you and then check the code and all should work for you. Its basic but will work.

  4. #4
    Board Regular Trevor G's Avatar
    Join Date
    Jul 2008
    Location
    Tamworth, Staffordshire
    Posts
    5,751

    Default Re: VBA to remove formatting

    Quote Originally Posted by Hiport View Post
    Hi i am after a VBA code that will remove all formatting including borders from Range A7:L

    You can do the following

    Sheets("The Sheet Name Goes here").select
    Range("A7:L200").ClearFormat

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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


DMCA.com