Doflamingo
Board Regular
- Joined
- Apr 16, 2019
- Messages
- 238
Hi all,
I try to design an automate structure/organizational chart and I'm just at the Beginning of my project
First, Here is the code of the List Box with the button of the macro that displays all the items contained in the listbox
Private Sub CommandButton_Click()
Dim I As Long
For I = 0 To ListBox1.ListCount - 1
Cells(1, I + 1) = ListBox1.List(I)
end sub
All the items of the listbox are displayed in a page of an excel spreadsheet in the same row in different columns, like that :
Item A (one column) Item B (one column) Item C (one column) etc.
but what I would like is to have all the items displayed like that ;
item A in a merged cell (2 colums), Empty column, item B in a merged cell (2 colums), Empty column, item C in a merged cell (2 colums), etc.
Any ideas ?
I try to design an automate structure/organizational chart and I'm just at the Beginning of my project
First, Here is the code of the List Box with the button of the macro that displays all the items contained in the listbox
Private Sub CommandButton_Click()
Dim I As Long
For I = 0 To ListBox1.ListCount - 1
Cells(1, I + 1) = ListBox1.List(I)
end sub
All the items of the listbox are displayed in a page of an excel spreadsheet in the same row in different columns, like that :
Item A (one column) Item B (one column) Item C (one column) etc.
but what I would like is to have all the items displayed like that ;
item A in a merged cell (2 colums), Empty column, item B in a merged cell (2 colums), Empty column, item C in a merged cell (2 colums), etc.
Any ideas ?