+ Reply to Thread
Results 1 to 4 of 4

How to clear cells values with vba but leave all conditional formatting etc

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    How to clear cells values with vba but leave all conditional formatting etc

    Hi I was wondering if anybody would be able to help me with this bit of code.

    The code below clears all the cells values, borders and conditional formatting.

    What do i need to add to the code so it only clears the cells values but leaves in place the borders and conditional formatting etc.

    Please Login or Register  to view this content.


    Thank you for taking the time to look.

    Regards

    Gally
    Last edited by gally; 12-10-2012 at 06:58 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to clear cells values with vba but leave all conditional formatting etc

    Clearcontents clears the cell, but keeps all the other formatting

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: How to clear cells values with vba but leave all conditional formatting etc

    That was quick!


    Thank you so much AB33

    Regards
    Gally

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to clear cells values with vba but leave all conditional formatting etc

    You are welcome!

+ 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