WelshyWizard
IS-IT--Management
I'm new to this so please bare with me...
In Excel I'm trying to fill a listbox on sheet1 with a range of data on sheet2.
I try to do this with the dode below:
However, when I run this I get the following error:
'Object Required'
I'm a bit confused by this... I've set the column count of the listbox to 2 and I've also managed to link to the selected field through the list boxes properties.... What am I doing wrong?!
If I get this working I'm planning upon changing the range for a variable range that will be different everytime, but 1st things 1st!
Thanks.
In Excel I'm trying to fill a listbox on sheet1 with a range of data on sheet2.
I try to do this with the dode below:
Code:
Sheet1.ListBox1.ControlFormat.ListFillRange = "Sheet2!A5:B11"
However, when I run this I get the following error:
'Object Required'
I'm a bit confused by this... I've set the column count of the listbox to 2 and I've also managed to link to the selected field through the list boxes properties.... What am I doing wrong?!
If I get this working I'm planning upon changing the range for a variable range that will be different everytime, but 1st things 1st!
Thanks.