braindiesel
Well-known Member
- Joined
- Mar 16, 2009
- Messages
- 571
- Office Version
- 365
- 2019
- 2010
- Platform
- Windows
Hello,
I have a userform (called "adjustprod")
On it I have a combobox called "adjustbox"
The row source is a range called adjustProdList1, adjustProdList2 or adjustProdList3 depending if you launch the box from my year 1, year 2 or Year 3 sheet.
In cell A1 on each of the sheets is a 1, 2, or 3 respectively
Is there a way I can have the variable row source or do I need three userforms?
If so do I put the code in immediately before the launch, as I have tried below (which yields an error) or is there somewhere I put is for when I launch the userform?
adjustBox.RowSource = Range("adjustProdList" & Range("a1").Value).Address
AdjustProd.Show
I have a userform (called "adjustprod")
On it I have a combobox called "adjustbox"
The row source is a range called adjustProdList1, adjustProdList2 or adjustProdList3 depending if you launch the box from my year 1, year 2 or Year 3 sheet.
In cell A1 on each of the sheets is a 1, 2, or 3 respectively
Is there a way I can have the variable row source or do I need three userforms?
If so do I put the code in immediately before the launch, as I have tried below (which yields an error) or is there somewhere I put is for when I launch the userform?
adjustBox.RowSource = Range("adjustProdList" & Range("a1").Value).Address
AdjustProd.Show