Problem setting a range

  • Thread starter Thread starter stefantem
  • Start date Start date
S

stefantem

set col = Sheet2.Range("A1:Z1")
for each c in col.Cells
...
set arie
Sheet2.Range(Cells(1,c.Offset(0,0).Column()),Cells(100,c.Offset(0,0).Column()))
(doesn't work)
...
nex
 
Set col = Sheet2.Range("A1:Z1")
For Each c In col.Cells

Set arie = _
Sheet2.Range(Sheet2.Cells(1, c.Column), Sheet2.Cells(100, c.Column))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top