View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Julian Milano[_2_] Julian Milano[_2_] is offline
external usenet poster
 
Posts: 19
Default For....Next- Array of worksheets.

I have the following code:

.....
Set H1 = Sheet2
Set H2 = Sheet4
Set H3 = Sheet6
Set H4 = Sheet8
Set Summary = Sheet11

For Each ws In Array(H1, H2, H3, H4)
.....

I have assigned the worksheet code names to variables H1..H4 and now wish to
cycle thru these worksheets. But XL is saying:

Runtime error 424: Object Required

On the For....Next line. What have I missed?

--

Julian Milano