Hi,
I am trying to do some analysis on an array in Excel and want to use VBA.
As a first step I need to define a range or array (not sure) that includes the 28 cells below. Then I need to pull out certain characteristics (using Offset, UCase) and display these in a table. I will probably need help on this but as a first step how do I define my array?
Dim aRng As Range
Dim aCell As Range
Set aRng = Selected
I've tried Set aRng = Range ("A1:A28") but this doesn't work.
Please help!
______
[TABLE="width: 103"]
<colgroup><col></colgroup><tbody>[TR]
[TD]UK[/TD]
[/TR]
[TR]
[TD]Brand Star[/TD]
[/TR]
[TR]
[TD]Total Cinemas 109[/TD]
[/TR]
[TR]
[TD]Total Screens 868[/TD]
[/TR]
[TR]
[TD]ITALY[/TD]
[/TR]
[TR]
[TD]Brand Holy[/TD]
[/TR]
[TR]
[TD]Total Cinemas 46[/TD]
[/TR]
[TR]
[TD]Total Screens 466[/TD]
[/TR]
[TR]
[TD]IRELAND[/TD]
[/TR]
[TR]
[TD]Brand Bird[/TD]
[/TR]
[TR]
[TD]Total Cinemas 10[/TD]
[/TR]
[TR]
[TD]Total Screens 68[/TD]
[/TR]
[TR]
[TD]PORTUGAL[/TD]
[/TR]
[TR]
[TD]Brand Holy[/TD]
[/TR]
[TR]
[TD]Total Cinemas 3[/TD]
[/TR]
[TR]
[TD]Total Screens 45[/TD]
[/TR]
[TR]
[TD]SPAIN[/TD]
[/TR]
[TR]
[TD]Brand Cinesa[/TD]
[/TR]
[TR]
[TD]Total Cinemas 46[/TD]
[/TR]
[TR]
[TD]Total Screens 535[/TD]
[/TR]
[TR]
[TD]GERMANY[/TD]
[/TR]
[TR]
[TD]Brand Kinowelt[/TD]
[/TR]
[TR]
[TD]Total Cinemas 23[/TD]
[/TR]
[TR]
[TD]Total Screens 203[/TD]
[/TR]
[TR]
[TD]AUSTRIA[/TD]
[/TR]
[TR]
[TD]Brand Kinowelt[/TD]
[/TR]
[TR]
[TD]Total Cinemas 3[/TD]
[/TR]
[TR]
[TD]Total Screens 38[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to do some analysis on an array in Excel and want to use VBA.
As a first step I need to define a range or array (not sure) that includes the 28 cells below. Then I need to pull out certain characteristics (using Offset, UCase) and display these in a table. I will probably need help on this but as a first step how do I define my array?
Dim aRng As Range
Dim aCell As Range
Set aRng = Selected
I've tried Set aRng = Range ("A1:A28") but this doesn't work.
Please help!
______
[TABLE="width: 103"]
<colgroup><col></colgroup><tbody>[TR]
[TD]UK[/TD]
[/TR]
[TR]
[TD]Brand Star[/TD]
[/TR]
[TR]
[TD]Total Cinemas 109[/TD]
[/TR]
[TR]
[TD]Total Screens 868[/TD]
[/TR]
[TR]
[TD]ITALY[/TD]
[/TR]
[TR]
[TD]Brand Holy[/TD]
[/TR]
[TR]
[TD]Total Cinemas 46[/TD]
[/TR]
[TR]
[TD]Total Screens 466[/TD]
[/TR]
[TR]
[TD]IRELAND[/TD]
[/TR]
[TR]
[TD]Brand Bird[/TD]
[/TR]
[TR]
[TD]Total Cinemas 10[/TD]
[/TR]
[TR]
[TD]Total Screens 68[/TD]
[/TR]
[TR]
[TD]PORTUGAL[/TD]
[/TR]
[TR]
[TD]Brand Holy[/TD]
[/TR]
[TR]
[TD]Total Cinemas 3[/TD]
[/TR]
[TR]
[TD]Total Screens 45[/TD]
[/TR]
[TR]
[TD]SPAIN[/TD]
[/TR]
[TR]
[TD]Brand Cinesa[/TD]
[/TR]
[TR]
[TD]Total Cinemas 46[/TD]
[/TR]
[TR]
[TD]Total Screens 535[/TD]
[/TR]
[TR]
[TD]GERMANY[/TD]
[/TR]
[TR]
[TD]Brand Kinowelt[/TD]
[/TR]
[TR]
[TD]Total Cinemas 23[/TD]
[/TR]
[TR]
[TD]Total Screens 203[/TD]
[/TR]
[TR]
[TD]AUSTRIA[/TD]
[/TR]
[TR]
[TD]Brand Kinowelt[/TD]
[/TR]
[TR]
[TD]Total Cinemas 3[/TD]
[/TR]
[TR]
[TD]Total Screens 38[/TD]
[/TR]
</tbody>[/TABLE]