Results 1 to 2 of 2

Thread: [RESOLVED] Generate

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2009
    Posts
    98

    Resolved [RESOLVED] Generate

    How can i generate numbers and words.
    like if i want to generate a001 to a999 on pressing command button.
    "a" should be taken from text box and rest of the work will be done by pressing command button.

    Any one

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Nov 2009
    Posts
    98

    Talking Re: Generate

    Quote Originally Posted by koolsid View Post
    Code:
    Sub Sample()
        Dim i As Long
        
        For i = 1 To 999
            '~~> Outputting it to Listbox for example
            List1.AddItem Text1.Text & Format(i, "000")
        Next i
    End Sub
    thank you buddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width