Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default RowSource not supported in Office for Macintosh (workaround?)

Dear All,

Apparently, RowSource is not supported in Office for Mac, which is causing me a great deal of pain. The problem is this:

I have a userform with a ListBox that retreives data from a named range. In the Windows version of Excel, I can just set the ListBox to get data using RowSource (e.g. ListBox.RowSource = "NamedRange"). However, on the Mac, I have to do some meatball surgery (using arrays and a FOR loop) to populate the list. My current code for this task is not very efficient as shown below.

Dim ListArray(2000, 2) As String

With Worksheets("Data")
ListBox.ColumnCount = 2
For i = 0 To .Range("NamedRange").Rows.Count
ListArray(i, 0) = .Range("NamedRange").Cells(i + 1, 1)
ListArray(i, 1) = .Range("NamedRange").Cells(i + 1, 2)
Next
End With

ListBox.List() = ListArray

For a list that contains around 2000 rows, the load time for the userform is (somewhat) significant. Well, maybe it's not that significant (a slight lag), but it's annoying the hell out of me. With RowSource, the form loads almost instantly.

My question is, "is there an equivalent alternative to RowSource for the Mac version of Office?" Or, is there a more efficient way to load data into a ListBox other than arrays and loops?

Any help is much appreciated.

Regards,

Albert
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default RowSource not supported in Office for Macintosh (workaround?)

Anyways, I probably wasn't thinking much before as I missed the obvious and simpler solution

ListBox.List = .Range("NamedRange").Valu

Hope this helps other Mac users out there

My only other beef is that ColumnHeader doesn't work because RowSource is not supported. I guess I'll just have to live with that, or do I

Albert
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
pasting in XL for Macintosh Dave F[_2_] Excel Discussion (Misc queries) 1 June 29th 07 02:30 AM
Publish Chart not supported in Office 2007? james Charts and Charting in Excel 0 February 14th 07 10:38 AM
Can u Import Macintosh 2.1 Excel file into Windows Office 2000? Gail Excel Discussion (Misc queries) 0 September 2nd 05 02:26 PM
Office XP Web Components supported by Office 2003 Chris P Excel Discussion (Misc queries) 0 June 21st 05 11:35 PM
Document not saved on macintosh Etienne Excel Discussion (Misc queries) 1 June 1st 05 06:30 PM


All times are GMT +1. The time now is 10:09 PM.

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"