Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Populate Worksheet from ListBoxes

I would like to transfer the contents of several listboxes to a temporary
worksheet for the purpose of printing a report. I suppose I could loop
through the contents of the listbox, but isn't there a way to get all of it
at once?

My current thinking (which may be all wet) is to transfer the contents to an
array then from the array to the worksheet.

Thank you
--
Adios,
Clay Harryman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Populate Worksheet from ListBoxes

Clay,

Is the listbox from the Forms command bar or the Controls command bar, or is
it on a user form? Are you using the ListFillRange property?

You might try something like

Dim V As Variant
V = Sheet1.ListBox1.List
Range("C11").Resize(UBound(V) - LBound(V) + 1).Value = V


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Clayman" wrote in message
...
I would like to transfer the contents of several listboxes to a temporary
worksheet for the purpose of printing a report. I suppose I could loop
through the contents of the listbox, but isn't there a way to get all of
it
at once?

My current thinking (which may be all wet) is to transfer the contents to
an
array then from the array to the worksheet.

Thank you
--
Adios,
Clay Harryman


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Populate Worksheet from ListBoxes

With ListBox1
Range("A1").Resize(.ListCount).Value = .List
End With


"Clayman" wrote in message
...
I would like to transfer the contents of several listboxes to a temporary
worksheet for the purpose of printing a report. I suppose I could loop
through the contents of the listbox, but isn't there a way to get all of
it
at once?

My current thinking (which may be all wet) is to transfer the contents to
an
array then from the array to the worksheet.

Thank you
--
Adios,
Clay Harryman



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
Populate Order worksheet from Quote worksheet Veronica Johnson Excel Worksheet Functions 10 January 23rd 08 09:12 PM
populate cell on worksheet 2 if text is red on worksheet 1 SCrowley Excel Worksheet Functions 14 May 15th 07 09:28 PM
Listboxes - populate with all worksheet names bluegnu[_7_] Excel Programming 1 July 12th 06 02:19 PM
Listboxes on a worksheet Jonathan Excel Programming 0 June 28th 06 01:40 AM
populate one worksheet from another Chris Excel Worksheet Functions 1 October 30th 04 03:05 PM


All times are GMT +1. The time now is 08:42 PM.

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"