Results 1 to 2 of 2

Thread: Saving listbox to Word document

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 1999
    Location
    Ruinen, Drente, Netherlands
    Posts
    192
    Can I save the contents of a listbox to a Word document (*.doc) ?
    And if so, who can give me an example ?
    s

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    Is this what you want?

    Open "C:\MyFile.Doc" For Output As #1
    For X = 0 To List1.ListCount - 1
    Print #1, List1.List(X)
    Next
    Close #1

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