View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michael Mitchelson[_2_] Michael Mitchelson[_2_] is offline
external usenet poster
 
Posts: 1
Default Hiding columns by Macro

Thanks to Chip Pearson for supplying the following formula
But can somebody explain it to me !!
There are a couple of functions that are new to me.
Just as a refresher, I am trying to hide the 2nd last
column of a spreadsheet, and that column is a different
column number each month.....but always the 2nd last.

Range(Range("A1"), Cells(1, Columns.Count).End(xlToLeft)
(1, 0)) _ .EntireColumn.Hidden = True

Regards
Michael