+ Reply to Thread
Results 1 to 6 of 6

Macro to delete cell contents in every other column

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Macro to delete cell contents in every other column

    The following macro is correctly deleting the cell contents in every other cell starting with the second cell in the selected range in row 46. The problem I am having is that in the selected range in row 47 the code is deleting every other cell starting with the first cell. I need the code to delete every other cell in row 47 starting with the second cell, similar to how the code performs on row 46.

    Can anyone help me with this? Thanks!!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by rhudgins; 09-01-2010 at 12:30 PM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Macro to delete cell contents in every other column

    I have several question
    1. What is fClear = Not fClear supposed to do?
    2. What are you trying to do? Do you want to clear comment for each row in every other column????
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to delete cell contents in every other column

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Macro to delete cell contents in every other column

    SNB- The code that you gave me deletes every other cell starting with the first. Can it be revised to delete every other cell starting with the second?

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to delete cell contents in every other column

    Change =0 into: = 1

  6. #6
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Macro to delete cell contents in every other column

    Thanks this is perfect!

+ 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