Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie

Status
Not open for further replies.

as123

IS-IT--Management
Mar 7, 2003
1
0
0
CA
I want to add 3 leading spaces to a output which is a number.

I have a function which returns numeric values as output.
say for example the output values are 1, 1000, 1200,2,23.
I would like to format this as follows.
1
1000
1200
2
23

Is there a way to do this.
All help is highly appreciated.

Thank you in advance.
Arvind.
 
Code:
If x < 10 Then 'assuming positive # only
  x = &quot;   &quot; & x '3 spaces
ElseIf x < 100 Then
  x = &quot;  &quot; & x '2 spaces
ElseIf x < 1000 Then
  x = &quot; &quot; & x '1 space
End If
. . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top