Delete text from column C

Abhishekghorpade

Board Regular
Joined
Oct 3, 2018
Messages
78
Hi,

Please give me macro to delete all text from column C... I have cells with numbers that should be untouched.

Thanks
 
I am not sure what you meant by "new Sheet1" in Message #5 , so I simply put it on Sheet1 starting at cell A1. See if this does what you want...
Code:
Sub UniqueNumbersInColumnC()
  Dim R As Long
  With CreateObject("Scripting.Dictionary")
    For R = 1 To Cells(Rows.Count, "C").End(xlUp).Row
      If Len(Cells(R, "C").Value) Then .Item(Cells(R, "C").Value) = 1
    Next
    Sheets("Sheet1").Range("A1").Resize(.Count) = Application.Transpose(.Keys)
  End With
End Sub
Thank you so much... Thats exactly what i wanted.. You guys are really awesome
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top