+ Reply to Thread
Results 1 to 6 of 6

Clear contents (maintain formatting) of set column in last row

  1. #1
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Clear contents (maintain formatting) of set column in last row

    So I am trying to design a macro that does the following:
    1) Copy last row and paste to new row
    2) Then clear contents (while maintaining formatting) of Column C, G, I-P of that new row.

    I have achieved part 1 by the following code:

    Please Login or Register  to view this content.

    However I am struggling with part 2. Hope you can help

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Clear contents (maintain formatting) of set column in last row

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: Clear contents (maintain formatting) of set column in last row

    Thanks Mumps1. However that clears all contents from the row.
    Although useful, because some cells contain formulas, I only want to clear Column C, G, I-P

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Clear contents (maintain formatting) of set column in last row

    Oops! Try:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: Clear contents (maintain formatting) of set column in last row

    Mumps1 PERFECT!!!
    Many thanks for your help and quick response

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Clear contents (maintain formatting) of set column in last row

    You are very welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Clear contents and move data up into blank cells, keep conditional formatting
    By Andy15 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2017, 01:59 PM
  2. [SOLVED] Clear contents of column(L) after every one row
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-02-2017, 06:00 AM
  3. Update Logic - Clear Contents & Cell Value Formatting
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2017, 03:16 AM
  4. Loop to clear cell contents by column (but not entire column)
    By codys21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2016, 03:26 PM
  5. [SOLVED] Want to clear contents also from left column
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2014, 02:31 AM
  6. Replies: 3
    Last Post: 01-08-2013, 01:27 PM
  7. Clear Contents on Column
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2012, 06:40 AM

Tags for this Thread

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