silentwolf
Well-known Member
- Joined
- May 14, 2008
- Messages
- 1,216
- Office Version
- 2016
Hi guys
a little stuck to find the best solution to non continious columns to change from number format to text format using VBA.
This is what I got for a single Column...
Say I like to change in active sheet Column A, D, F to text
In the above code do I need .value = .Value?
Thanks for help
a little stuck to find the best solution to non continious columns to change from number format to text format using VBA.
This is what I got for a single Column...
Say I like to change in active sheet Column A, D, F to text
VBA Code:
Sub ConvertNumberToText()
With Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row)
.NumberFormat = "@"
.Value = .Value
End With
End Sub
In the above code do I need .value = .Value?
Thanks for help