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: 1
Default R1C1 seems to effect listbox fill in VBA

Hi Folks

I have a spreadsheet application that uses a few advanced filters and
populates some worksheet listboxes and Dropdown boxes with the
results.
Works fine when the sheet is NOT in R1C1 mode, but when the sheet was
changed to R1C1 reference the listboxes no longer populated!
Has anyone else ever had this issue?
I know its avoidable by setting the R1C1 reference first but I have
not come across this porblem before.
Here is an "example" of the code (yes i know it can be written more
efficiently).


Sub lists_populate()
check1 = Worksheets("bench").Range("b65000").End(xlUp).Row + 1
check2 = Worksheets("bench").Range("e65000").End(xlUp).Row + 1
check3 = Worksheets("bench").Range("g65000").End(xlUp).Row + 1

set1 = "bench!a2:b" & check1
set2 = "bench!d2:e" & check2
set3 = "bench!g2:n" & check3

ListBox1.ListFillRange = set1
ListBox2.ListFillRange = set2
ListBox3.ListFillRange = set3

End Sub

TIA
Steve Picton
 
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
2003 "Pattern" fill effect Jim Orson Charts and Charting in Excel 3 May 6th 08 07:50 PM
Conditional Formating & Fill Effect Danny Excel Discussion (Misc queries) 6 September 11th 06 07:36 PM
Excel printing problem - won't print cell under a "fill effect" bo dmotika Excel Discussion (Misc queries) 0 May 26th 05 04:38 PM
Fill a ListBox with items using VBA [email protected] Excel Programming 1 April 21st 04 09:59 PM
For..next.. help to fill listbox jasonsweeney[_69_] Excel Programming 1 April 20th 04 09:25 PM


All times are GMT +1. The time now is 07:18 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"