LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Retrieving value from range name

I have a one-cell range on Sheet1 named First_Column_to_Hide. The value
of First_Column_to_Hide is always a column address. Is there a way I can
retrieve the value from First_Column_to_Hide to substitute for the ZZZ
(placeholder) in the code segment below?

Sub HideUnhideColumns()
Application.ScreenUpdating = False
ActiveSheet.Columns("N:BE").EntireColumn.Hidden = False
ActiveSheet.Columns("ZZZ:BE").EntireColumn.Hidden = True
Application.ScreenUpdating = True
End Sub

I would appreciate any help on this. Thanks.

 
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
Retrieving Data Range for Chart Terry Excel Programming 2 July 27th 07 08:40 PM
Retrieving Data: Speed of beating down rows vs retrieving from array? (PeteCresswell) Excel Programming 2 July 9th 07 03:30 PM
Retrieving comment using range name topola Excel Discussion (Misc queries) 2 October 20th 05 11:27 AM
Retrieving range string from named range clapper Excel Programming 4 October 13th 05 03:09 PM
Retrieving the SQL query of the external data range Pavils Jurjans Excel Programming 2 March 23rd 05 06:41 PM


All times are GMT +1. The time now is 07:05 PM.

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

About Us

"It's about Microsoft Excel"