Excel Formatting with VBA

  • Thread starter Thread starter Bill Short
  • Start date Start date
B

Bill Short

I am creating an Excel spreadsheet through code from MS Access. After
it is created I would like to go through and set the row height
(programtically) based on the value in column A. I'm not sure how to
go about moving through each row and setting this attribute.

TIA

Bill
 
Hi Bill

Looping rows can be done like this

Dim L As Long
For L = 1 To 100
Rows(L).RowHeight = 5
Next

HTH. Best wishes Harald
 

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