How to Set ListFillRange to Another Sheet

G

Guest

Excel 2003. How do I programatically set the ListFillRange of a combobox
control to a range of cells in another sheet in the same workbook?

DRRecipient.ListFillRange = ?

The other sheet name is "Setup" and the range I want in "Setup" is
"AA1:AB365" Thanks.
 
D

Dave Peterson

DRRecipient.ListFillRange _
= ThisWorkbook.worksheets("setup").range("aa1:ab365").address(external:=true)

(activeworkbook instead of ThisWorkbook????)
 
B

Bob Phillips

Doug,

Just precede the range by the sheet name as you would in a worksheet
formula,

DRRecipient.ListFillRange = "'sheet name'!A1:A20"
 
G

Guest

Dear Bob, et al:

Thank you for the help. It is obvious now, but it has been a while since I
have been into my code and Excel. Thanks for the prompt reply. God bless.

Bob Phillips said:
Doug,

Just precede the range by the sheet name as you would in a worksheet
formula,

DRRecipient.ListFillRange = "'sheet name'!A1:A20"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top