Hello
The following code
Quote
Set AADrpDn = .Shapes.AddFormControl(xlDropDown, 4, 84 + 33, 536, 21)
For i = 1 To 10
TextF = Cells(i, 2) & Cells(i, 3) & Cells(i, 4) & Cells(i, 5) & Cells(i, 6)
AADrpDn.ControlFormat.AddItem TextF
Next i
Unquote
is in a excel macro, which working as follows:
1st Create a drop down list
2nd Read five (5) cells in ten (10) rows,
3rd Create a string for each row
4th Add the string, as item to the drop down list.
The drop down list looks (aligned) as follows
a1a1a1a1_a2a2a2a2_a3a3a3a3_a4a4a4_a5a5a5a5 (The first row)
b1b1_b2b2b2_b3b3b3b3b_b4b4b4b4b_b5b5 (The second row)
Here I need help (key words) to make the drop down list to look (to be aligned) as follows (lets say in columns):
a1a1a1a1__a2a2a2a2__a3a3a3a3_____a4a4a4______a5a5a5a5"
b1b1______b2b2b2____b3b3b3b3b____b4b4b4b4b___b5b5"
note that _ equals to space
Many thanks
regards
The following code
Quote
Set AADrpDn = .Shapes.AddFormControl(xlDropDown, 4, 84 + 33, 536, 21)
For i = 1 To 10
TextF = Cells(i, 2) & Cells(i, 3) & Cells(i, 4) & Cells(i, 5) & Cells(i, 6)
AADrpDn.ControlFormat.AddItem TextF
Next i
Unquote
is in a excel macro, which working as follows:
1st Create a drop down list
2nd Read five (5) cells in ten (10) rows,
3rd Create a string for each row
4th Add the string, as item to the drop down list.
The drop down list looks (aligned) as follows
a1a1a1a1_a2a2a2a2_a3a3a3a3_a4a4a4_a5a5a5a5 (The first row)
b1b1_b2b2b2_b3b3b3b3b_b4b4b4b4b_b5b5 (The second row)
Here I need help (key words) to make the drop down list to look (to be aligned) as follows (lets say in columns):
a1a1a1a1__a2a2a2a2__a3a3a3a3_____a4a4a4______a5a5a5a5"
b1b1______b2b2b2____b3b3b3b3b____b4b4b4b4b___b5b5"
note that _ equals to space
Many thanks
regards