VBA to remove formatting

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: VBA to remove formatting

  1. #1
    Board Regular
    Join Date
    May 2008
    Posts
    455
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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,129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    6,262
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    6,262
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

User Tag List

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