Hi,
I am trying to use the following code to convert text cells into number cells:
Sub Button2_Click()
Range("S6", Range("S6").End(xlDown)).Select
With Selection
Selection.NumberFormat = "General"
.Value = .Value
End With
End Sub
It works with this specific column but how do I choose more than one? I have tried to insert the other columns within the brackets, then added a comma and inserted the code on the same line and finally inserted the same code for each column on separate lines. Nothing works.
The columns I want included are A6, B6, D6, E6, I6, N6 and S6.
Could any of you tell me how I include more columns to this code?
Thanks.
I am trying to use the following code to convert text cells into number cells:
Sub Button2_Click()
Range("S6", Range("S6").End(xlDown)).Select
With Selection
Selection.NumberFormat = "General"
.Value = .Value
End With
End Sub
It works with this specific column but how do I choose more than one? I have tried to insert the other columns within the brackets, then added a comma and inserted the code on the same line and finally inserted the same code for each column on separate lines. Nothing works.
The columns I want included are A6, B6, D6, E6, I6, N6 and S6.
Could any of you tell me how I include more columns to this code?
Thanks.