Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Delete cells in column every

Hi

How do I delete cells left every second cell in my column B starting
from 4 cells down in the column?

Been looking for hours to do this......

Any help is appreciated,

Andrea

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Delete cells in column every

One way:

Dim rDelete As Range
Dim i As Long
Set rDelete = Cells(4, 2)
For i = 6 To Cells(Rows.Count, 2).End(xlUp).Row Step 2
Set rDelete = Union(rDelete, Cells(i, 2))
Next i
rDelete.Delete Shift:=xlToLeft


In article .com,
wrote:

Hi

How do I delete cells left every second cell in my column B starting
from 4 cells down in the column?

Been looking for hours to do this......

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete cells column. Delete empty cells myshak Excel Worksheet Functions 0 March 9th 09 10:59 PM
How can I delete all balnk cells in a column? John Excel Discussion (Misc queries) 6 January 14th 08 03:05 AM
Easiest way to delete blank cells in column (not entire row) sramsey Excel Discussion (Misc queries) 4 February 16th 06 04:28 PM
In a column of text data, how do I delete random cells that have . Minivann Excel Discussion (Misc queries) 2 January 26th 05 09:07 PM
delete all EMPTY cells along each COLUMN active_x[_5_] Excel Programming 0 September 10th 03 03:41 AM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"