Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hidding columns not working

xlsSheet = objWorkBook.Worksheets("Sheet1")

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

The program runs find loading all the data and calculating sums on the
sheet but refuses to ever hide that column.

What setting am I missing??

Thanks in adavance
Ryan

  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Hidding columns not working

try
Sub hidecol()
Set xlsSheet = Worksheets("Sheet2")
xlsSheet.Columns("c").Hidden = True
End Sub
--
Don Guillett
SalesAid Software

wrote in message
ups.com...
xlsSheet = objWorkBook.Worksheets("Sheet1")

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

The program runs find loading all the data and calculating sums on the
sheet but refuses to ever hide that column.

What setting am I missing??

Thanks in adavance
Ryan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidding #DIV/0! In Cell Harlan Grove[_2_] Excel Worksheet Functions 0 May 23rd 07 07:37 PM
Hidding #DIV/0! In Cell Susan Excel Worksheet Functions 0 May 23rd 07 07:15 PM
Hidding #DIV/0! In Cell Harlan Grove[_2_] Excel Worksheet Functions 0 May 23rd 07 06:49 PM
Hidding #DIV/0! In Cell Harlan Grove[_2_] Excel Worksheet Functions 0 May 23rd 07 06:49 PM
Hidding columns pcor[_2_] Excel Programming 1 July 23rd 03 01:42 AM


All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"