ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   setting rowsource to a dynamic range in design mode (https://www.excelbanter.com/excel-programming/368291-setting-rowsource-dynamic-range-design-mode.html)

[email protected]

setting rowsource to a dynamic range in design mode
 
Is it possible to change a listbox's rowsource property equal to a
dynamic range using a variable in design mode? If so, how does one do
so? Thanks, Abe


Tom Ogilvy

setting rowsource to a dynamic range in design mode
 
Insert Name Define

Name:= ListA

Refersto:= =Offset(Sheet1!$A$1,1,0,counta($A:$A)-1,1)

click ADD


then in the rowsource property type in

ListA

--
Regards,
Tom Ogilvy



" wrote:

Is it possible to change a listbox's rowsource property equal to a
dynamic range using a variable in design mode? If so, how does one do
so? Thanks, Abe



[email protected]

setting rowsource to a dynamic range in design mode
 
Hi Tom--Thanks for your help, but I am still missing something. I have
programmatically defined the name in the initialize routine of the
userform and then typed the name ("list A") into the rowsource property
but nothing is happening. I have changed the name to refer to a certain
range on the active sheet, so perhaps that is the root of the trouble.
Any ideas?


[email protected]

setting rowsource to a dynamic range in design mode
 
Nevermind, I have solved the trouble. Rowsource takes the info in
certain rows (duh!) and I need info for certain column headings.



All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com