![]() |
|
#2
|
|||
|
|||
|
You want to delete the cell but not the row ???
Okay, so what's to happen? Cells from below move up or cells from the right move left? Seeing column B is now in the picture, maybe this is what you need Code:
Sub CopyInto_B()
Dim lastrow As Long, writerow As Long
Dim i As Long
With Sheets("Sheet1")
lastrow = .Cells(Rows.Count, "A").End(xlUp).Row
writerow = 1
For i = 1 To lastrow
If .Cells(i, 1).Value <> "" And .Cells(i, 1).Value <> "," Then
.Cells(writerow, 2).Value = .Cells(i, 1).Value
writerow = writerow + 1
End If
Next i
End With
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pivot not showing number format with commas | olybobo | Excel | 1 | 05-05-2016 05:09 PM |
Counting Blanks in 1 Column and Non-Blanks in Another
|
dogwood705 | Excel | 4 | 02-07-2015 08:45 AM |
| Commas within fields in .csv files | gar | Excel | 1 | 01-29-2015 09:24 PM |
How to use mid or left functions to seperate city,st,zip with no commas
|
sinaranje | Excel | 4 | 11-11-2014 10:52 PM |
No inverted commas in word 2013.
|
tonycrossley | Word | 3 | 01-27-2014 04:55 PM |