Selecting a row to set row height in Excel

How do I select a row/rows in Excel to change the row height? Here is the results of an Excel macro that does this:
Rows("1:1").RowHeight = 69
With my_sheet as my worksheet object, I tried:
my_range = my_sheet.Rows('1:1');
but this gives me the error:
??? Index exceeds matrix dimensions.

 Respuesta aceptada

Jiro Doke
Jiro Doke el 21 de En. de 2011
Try using the "Range" property.
my_range = my_sheet.Range('1:1');

Más respuestas (0)

Productos

Etiquetas

Preguntada:

el 21 de En. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by