Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Copy Spreadsheet or listbox

Earlier i posted to put values in a spreadsheet but i want try to put
the values in a listbox instead. im getting a blank row with this
portion of code. Also i was wondering how i would change the columns in
the listbox. I have 0.75 pt in there right now with 13 columns. do i
have to repeat that .75pt 13 x's? Also is there any other efficient way
of doing this very same task no matter if its spreadsheet or listbox,
or etc. thankyou


For i = 1 To Worksheets("By Store").Cells.Count
If Worksheets("By Store").Cells(i, column).Value =
cboRefine Then
For z = 1 To 13
If m = 0 Then
strString = strString & Cells(i, z).Value & ";"
ElseIf m = 0 And m < 13 Then
strString = strString & Cells(i, z).Value & ";"
ElseIf m = 13 Then
strString = strString & Cells(i, z).Value
Exit Sub
End If
m = m + 1
Next
lstResults.AddItem strString
End If
Next

Reply
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
Removing a listbox from excel spreadsheet TrishB98 Excel Worksheet Functions 3 July 16th 08 07:57 PM
How to get a listbox to move when scrolling down spreadsheet kdunnSBLI Excel Discussion (Misc queries) 1 June 24th 05 12:31 AM
Want listbox to move when scrolling down spreadsheet kdunnSBLI Excel Discussion (Misc queries) 3 June 23rd 05 11:11 PM
Adding items to a spreadsheet from a user form listbox aet-inc[_4_] Excel Programming 1 December 3rd 03 05:13 AM
adding a listbox to a spreadsheet [email protected] Excel Programming 2 October 29th 03 05:45 PM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"