Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'd like to remove values in cells (not cells) in column A that don't contain a 10digit number. thanks for any suggestions Jan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jan,
I'd like to remove values in cells (not cells) in column A that don't contain a 10digit number. try For Each cell In Range("whatever") If (cell.Value Mod 1000000000 = 0) Then cell.Value = "" End If Next cell Best Markus |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
JH wrote:
Hello, I'd like to remove values in cells (not cells) in column A that don't contain a 10digit number. thanks for any suggestions Jan Hi Jan This is simple way to do it. Sub clearcol() For i = 1 To 100 ' 100 is the no. of rows to check, could be more If Len(Cells(i, 1)) < 10 Then Cells(i, 1) = "" Next i End Sub HTH Andrew Bourke |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe Cells(i, 1).ClearContents?
Regards, Bernd |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks everybody
Jan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need to delete the values in some cells, | Excel Worksheet Functions | |||
how to delete specific values in cells | New Users to Excel | |||
delete the test values, but do not delete the formulas | Excel Discussion (Misc queries) | |||
Macro do delete values in cells | Excel Discussion (Misc queries) | |||
delete values in several cells without deleting the formulas | Excel Discussion (Misc queries) |