LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro closes all coluns and not just the programmed ones, why?

Hi

I have the macro as follows:

Sub hide()
'
' hide Macro
' Macro recorded 2004/05/02 by
'
' Keyboard Shortcut: Ctrl+h
'
Columns("M:O").Select
Selection.EntireColumn.Hidden = True
Columns("X:Z").Select
Selection.EntireColumn.Hidden = True
Columns("AI:AK").Select
Selection.EntireColumn.Hidden = True
Columns("AT:AV").Select
Selection.EntireColumn.Hidden = True
Columns("BE:BG").Select
Selection.EntireColumn.Hidden = True
Columns("BP:BR").Select
Selection.EntireColumn.Hidden = True
Columns("CA:CC").Select
Selection.EntireColumn.Hidden = True
Columns("CF:CF").Select
Selection.EntireColumn.Hidden = True
Columns("CM:CM").Select
Selection.EntireColumn.Hidden = True
Columns("CR:CR").Select
Selection.EntireColumn.Hidden = True

End Sub


Everytime I play the macro, it hides everything, need help to sort i
out, as I want it to unhide and hide these columns for view an
printing purposes, well, to fit on page.

I am including a zip file for anyone to see.

my email address is:


Thank

Attachment filename: mastertimesheet6d.zip
Download attachment:
http://www.excelforum.com/attachment.php?postid=53153
--
Message posted from http://www.ExcelForum.com

 
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
Excel closes down during a macro Muttley Excel Discussion (Misc queries) 0 January 24th 06 12:24 PM
Macro Editor closes Excel 2000 ? Rmontgo Excel Discussion (Misc queries) 0 July 16th 05 03:00 PM
macro that closes excel application and open another app wendy Excel Programming 0 January 9th 04 05:13 PM
Macro closes excel and therefore won't run anymore David_Stickland Excel Programming 2 December 8th 03 04:45 PM
Making a macro run when the user closes a workbook Cesar Zapata[_2_] Excel Programming 0 November 24th 03 02:43 PM


All times are GMT +1. The time now is 08:40 AM.

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"