View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Martin Fishlock[_3_] Martin Fishlock[_3_] is offline
external usenet poster
 
Posts: 59
Default Hidding columns not working

Ryan

I think tht you need to use set, see below.

Set objWorkBook = ActiveWorkbook
Set xlsSheet = objWorkBook.Worksheets("Sheet1")

xlsSheet.Range("C:C").EntireColumn.Hidden = True


This is a slightly neater way of achiveing the same result.

xlsSheet.Columns("C").Hidden = True