LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Problem with Excel list box

Hello, I am trying to learn how to work with the list of
informtion in a listbox. I have added the list using
AddItem. Now I want to print that list to file. The
following code does not work, and has my notes. I would
appreciate any suggestions on how to make the print
statement work, but also how to move data into this two-
column listbox list.
Thank you

Keith


var3 = ListBox1.ListCount


Close #1
i = 0
Open "c:\test\temp.txt" For Output As #1
For i = 0 To var3 - 1 'Each In ListBox1
'i = i + 1

Print #1, i
'Print #1, ListBox1(i).Value ' not accepted at run
time
'Print #1, ListBox1(i, 1).Value ' not accepted at run
time
'Print #1, ListBox1(i, 0).Value ' not accepted

'Print #1, ListBox1(i).Text


Next i
Close #1



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Excel problem with Jump List Jack Wiggins New Users to Excel 1 November 24th 09 08:35 PM
Excel list problem Yuri Excel Discussion (Misc queries) 0 June 12th 07 01:06 PM
Excel 2003 - XML List Formatting Problem Niko Excel Discussion (Misc queries) 0 June 8th 06 12:32 PM
Excel List Sorting Problem (Descending) Erik Excel Discussion (Misc queries) 2 October 11th 05 11:12 AM
Excel Validation / Dropdown list Problem edsulya Excel Programming 5 February 5th 04 09:06 PM


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"