Hello,
I am fairly new to VBA and i need help with a script to do the following. I have this following data;
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]Date
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Channel[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 70"]
<colgroup><col width="70"></colgroup><tbody>[TR]
[TD="class: xl65, width: 70"]Event Name[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 58"]
<colgroup><col width="58"></colgroup><tbody>[TR]
[TD="class: xl65, width: 58"]Job Type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 88"]
<colgroup><col width="88"></colgroup><tbody>[TR]
[TD="class: xl65, width: 88"]Description[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]Initiated by[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 52"]
<colgroup><col width="52"></colgroup><tbody>[TR]
[TD="class: xl65, width: 52"]Resource[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bhai
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]AC
[/TD]
[TD]VP
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bhai
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]AC
[/TD]
[TD]SW
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Wor[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Master
[/TD]
[TD]Back
[/TD]
[TD]Event Brand
[/TD]
[TD]NJ
[/TD]
[TD]SS
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Mov[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Tomorrow
[/TD]
[TD]Other
[/TD]
[TD]Tune in
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]FX[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Cat
[/TD]
[TD]Col Cat
[/TD]
[TD]Coffee
[/TD]
[TD]RW
[/TD]
[TD]HA
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Hot[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Hoard
[/TD]
[TD]Hoard
[/TD]
[TD]Launch in Kol
[/TD]
[TD]AP
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Plu
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Barn
[/TD]
[TD]Other
[/TD]
[TD]Umb Brand
[/TD]
[TD]AK
[/TD]
[TD]AJ
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Ok[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Mad
[/TD]
[TD]Post
[/TD]
[TD]Coffee Day
[/TD]
[TD]RW
[/TD]
[TD]RKV
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Ok[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bahu
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]RW
[/TD]
[TD]DS
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Shol
[/TD]
[TD]Brand
[/TD]
[TD]Stand
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Shol
[/TD]
[TD]Brand
[/TD]
[TD]Tune in
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Plu
[/TD]
[TD]Naam
[/TD]
[TD]Hoard
[/TD]
[TD]Launch
[/TD]
[TD]AC
[/TD]
[TD]HA
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Plu
[/TD]
[TD]Nand
[/TD]
[TD]Hoard
[/TD]
[TD]Launch
[/TD]
[TD]AC
[/TD]
[TD]SS
[/TD]
[/TR]
</tbody>[/TABLE]
What i need is the following
1) Unique and sorted (ascending order) values from Column B to be assigned to ComboBox1
2) Depending on what is chosen in Combobox1, corresponding unique values from Column C to be assigned to Combobox2
3) There is a command button which says "Display Data"
4) On pressing the command button "Display Data", depending on the values chosen in ComboBox1 and ComboBox2, the Listbox displays corresponding data from columns D to G in a list box
5) There can be a possibility that no option is chosen in ComboBox2, even then the listbox should display all relevant data in the list box from columns D to G depending on the option chosen in ComboBox1
6) On selecting (or double clicking) the relevant row item from the list box, all the values of the row chosen (column A to G) should be displayed in the text boxes which can be edited.
Appreciate your help in advance.
Warm Regards
Derick
I am fairly new to VBA and i need help with a script to do the following. I have this following data;
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]Date
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Channel[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 70"]
<colgroup><col width="70"></colgroup><tbody>[TR]
[TD="class: xl65, width: 70"]Event Name[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 58"]
<colgroup><col width="58"></colgroup><tbody>[TR]
[TD="class: xl65, width: 58"]Job Type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 88"]
<colgroup><col width="88"></colgroup><tbody>[TR]
[TD="class: xl65, width: 88"]Description[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]Initiated by[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 52"]
<colgroup><col width="52"></colgroup><tbody>[TR]
[TD="class: xl65, width: 52"]Resource[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bhai
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]AC
[/TD]
[TD]VP
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bhai
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]AC
[/TD]
[TD]SW
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Wor[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Master
[/TD]
[TD]Back
[/TD]
[TD]Event Brand
[/TD]
[TD]NJ
[/TD]
[TD]SS
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]28-Jun-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Mov[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Tomorrow
[/TD]
[TD]Other
[/TD]
[TD]Tune in
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]FX[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Cat
[/TD]
[TD]Col Cat
[/TD]
[TD]Coffee
[/TD]
[TD]RW
[/TD]
[TD]HA
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Hot[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Hoard
[/TD]
[TD]Hoard
[/TD]
[TD]Launch in Kol
[/TD]
[TD]AP
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Plu
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Barn
[/TD]
[TD]Other
[/TD]
[TD]Umb Brand
[/TD]
[TD]AK
[/TD]
[TD]AJ
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Ok[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Mad
[/TD]
[TD]Post
[/TD]
[TD]Coffee Day
[/TD]
[TD]RW
[/TD]
[TD]RKV
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]01-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Ok[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Bahu
[/TD]
[TD]Press
[/TD]
[TD]Tune in
[/TD]
[TD]RW
[/TD]
[TD]DS
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Shol
[/TD]
[TD]Brand
[/TD]
[TD]Stand
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 50"]
<colgroup><col width="50"></colgroup><tbody>[TR]
[TD="class: xl65, width: 50"]Gol[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Shol
[/TD]
[TD]Brand
[/TD]
[TD]Tune in
[/TD]
[TD]SG
[/TD]
[TD]AK
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Plu
[/TD]
[TD]Naam
[/TD]
[TD]Hoard
[/TD]
[TD]Launch
[/TD]
[TD]AC
[/TD]
[TD]HA
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 63"]
<colgroup><col width="63"></colgroup><tbody>[TR]
[TD="class: xl65, width: 63"]10-Jul-13[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Plu
[/TD]
[TD]Nand
[/TD]
[TD]Hoard
[/TD]
[TD]Launch
[/TD]
[TD]AC
[/TD]
[TD]SS
[/TD]
[/TR]
</tbody>[/TABLE]
What i need is the following
1) Unique and sorted (ascending order) values from Column B to be assigned to ComboBox1
2) Depending on what is chosen in Combobox1, corresponding unique values from Column C to be assigned to Combobox2
3) There is a command button which says "Display Data"
4) On pressing the command button "Display Data", depending on the values chosen in ComboBox1 and ComboBox2, the Listbox displays corresponding data from columns D to G in a list box
5) There can be a possibility that no option is chosen in ComboBox2, even then the listbox should display all relevant data in the list box from columns D to G depending on the option chosen in ComboBox1
6) On selecting (or double clicking) the relevant row item from the list box, all the values of the row chosen (column A to G) should be displayed in the text boxes which can be edited.
Appreciate your help in advance.
Warm Regards
Derick