#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Hide columns code

Sheets("Layouts").Columns("A:IV").EntireColumn.Hid den = True


Sheets("Layouts").Columns(Range("C38:IV38").Find(S heet1.Range("F4")).
_
Offset(1, 0).Value).EntireColumn.Hidden = False

Here is my code and I am trying to hide all of the columns except a
few. The few are assigned by looking up the value from
Sheet1.Range("F4") and looking them up on
Sheets("Layouts").Columns(range("C38:IV38") What is wrong with my
code?

Thanks,
Jay
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
hide code does not hide Wanna Learn Excel Discussion (Misc queries) 2 March 6th 08 07:21 PM
code to hide hides too much Marilyn Excel Discussion (Misc queries) 4 January 25th 08 02:46 AM
Hide VBA code help GerryK Excel Worksheet Functions 3 May 30th 07 09:47 PM
How to hide VB code from Excel file Anift Setting up and Configuration of Excel 3 December 19th 06 01:43 PM
Hide Code tannersnonni Excel Discussion (Misc queries) 0 July 28th 05 01:06 AM


All times are GMT +1. The time now is 07:37 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"