View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
KL
 
Posts: n/a
Default Macro for hiding rows

another way without macros:

1) select one of the columns where empty cells correspond to empty rows
2) menu EditGoto...
3) press the button 'Special...'
4) mark the 'Blanks' option and press 'OK'
5) menu FormatRowsHide...

or using short cut keys:

1) having the cursor in a cell of the relevant column press Ctrl+Space
2) Ctrl+g
3) Hold Alt+ s, k,
4) Enter
5) Hold Alt + o, r, h

Regards,
KL


"Luke" wrote in message ...
I have a spreadsheet which contains a lot of rows with no data, I would like
to create a macro to hide these rows.

Preferably I would like it to work off one column and hide any rows with a
value of zero.

Any ideas?