+ Reply to Thread
Results 1 to 6 of 6

VB Code to clear contents of certain columns

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to clear contents of certain columns

    Hello:

    I need VB Code to ClearContents the data in
    Column(O:P),
    Column(S:T),
    Column(W:X) and so on until last Column(EE:EF)

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: VB Code to clear contents of certain columns

    Give this a try

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: VB Code to clear contents of certain columns

    Try this on:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: VB Code to clear contents of certain columns

    @Alan

    If I'm reading your code right it will continue while ever there is content in cells and I'm not sure if the OP wants to continue past EE:EF even if there is content in the cells.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: VB Code to clear contents of certain columns

    Crooza: True. I interpreted and maybe incorrectly that the file may have ended at columns EF. Excellent catch. Let's see what the OP says.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to clear contents of certain columns

    Hi Crooza and Alan:

    Code works great, i will be implementing Crooza code.
    Thanks both for great help.
    Riz

+ 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. VBA Code to clear contents
    By tubbs1969 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2016, 10:07 AM
  2. [SOLVED] code to clear all contents in columns with specific text in row 2
    By xcelnovice101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2014, 08:58 AM
  3. VB Code to clear contents
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2014, 01:35 AM
  4. Code to Clear Contents if values is zero
    By chico.corrales in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2013, 08:04 PM
  5. [SOLVED] VBA Code - Compare Adjacent Cells In two columns and clear contents when a match is found
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-03-2013, 06:22 AM
  6. [SOLVED] VBA clear contents except for columns A and B
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2012, 10:26 AM
  7. Code to clear multiple contents
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2012, 02:13 PM

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