How to increment column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to start at column 20 and incrment by 1 and insert
a heading for each column - all via a macro.

I can capture the column index but I can't seem to
increment to the next column.

Help

Glen
 
To make a heading for columns 20 to 25:
Sub MakeHeads()
Cells(1,20).resize(1,6).Value =
array("Head1","Head2","MyHead","Head4","Head5","Col25")
End sub
 

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