Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works!
Thank you, Tom. "Tom Ogilvy" wrote: Dim i As Long, lastrow As Long lastrow = Range("A1").CurrentRegion.Rows.Count For i = 1 To lastrow Cells(i, 8) = "'" & Format(Cells(i, 6), "000") Next -- Regards, Tom Ogilvy "Scott" wrote: Here are my codes: Dim i As Long, lastrow As Long lastrow = Range("A1").CurrentRegion.Rows.Count For i = 1 To lastrow Cells(i, 8) = Format(Cells(i, 6), "000") Next I still got numbers, not text. "Gary''s Student" wrote: Sub routine() Dim n As Integer, s As String n = 5 s = Format(n, "000") MsgBox (s) End Sub -- Gary''s Student gsnu200711 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert text number to number formate | Excel Discussion (Misc queries) | |||
Convert a number formatted as text to a number in a macro | Excel Programming | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
not able to convert text, or graphic number to regular number in e | Excel Worksheet Functions | |||
Convert number in text format to number | Excel Programming |