All,
I am trying to create a macro which creates a list on a seperate worksheet.
The data i have is arranged in different cells in "Sheet 1" but predominantly looks like:
[TABLE="width: 127"]
<tbody>[TR]
[TD]Room
[/TD]
[TD]No.
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]12
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
</tbody>[/TABLE]
What i am hoping to achieve is a list in the following format but in a different spreadsheet:
[TABLE="width: 160"]
<tbody>[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]5
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]6
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]8
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]9
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]10
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]11
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]12
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
</tbody>[/TABLE]
The list can be generated at any point so i think the start of the macro needs to reset the list produced.
Any help is appreciated.
Regards,
Gurnek.
I am trying to create a macro which creates a list on a seperate worksheet.
The data i have is arranged in different cells in "Sheet 1" but predominantly looks like:
[TABLE="width: 127"]
<tbody>[TR]
[TD]Room
[/TD]
[TD]No.
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]12
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
</tbody>[/TABLE]
What i am hoping to achieve is a list in the following format but in a different spreadsheet:
[TABLE="width: 160"]
<tbody>[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]5
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]6
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]8
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]9
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]10
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]11
[/TD]
[/TR]
[TR]
[TD]Lecture Rooms
[/TD]
[TD="align: right"]12
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Seminar Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Dining Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Sports Hall
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]1
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]2
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]3
[/TD]
[/TR]
[TR]
[TD]Activity Rooms
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
</tbody>[/TABLE]
The list can be generated at any point so i think the start of the macro needs to reset the list produced.
Any help is appreciated.
Regards,
Gurnek.