LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bri
 
Posts: n/a
Default hidden column concern

Hello

I have a wide table (250 columns). The first 4 columns are a frozen pane.
When I run any of a series of macros (see a sample below), some columns are
hidden while others are shown.

I have 2 concerns:

a) When I run the macro, the screen flickers for a second during execution.
No big deal, but I'd prefer it to not do this. Is my code inefficient, or
is there some way to prevent this?

b) All of the macros work in any combination, but sometimes I can't see the
non-hidden columns immediately because they are too far off to the left. I
can fix this by moving the slider on the bottom right of the screen all the
way left. How can I get the code to do this?

Thank you in advance


Sub ShowTest_A_Results()
Dim TableEndCol As Integer
TableEndCol = 250

For N = 5 To TableEndCol
Select Case N
Case 5 To 27, 32 To 68, 75 To 123, 128, 130 To TableEndCol
Columns(N).Hidden = True
Case Else
Columns(N).Hidden = False
End Select
Next
End Sub



 
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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Prevent Hidden Column data from being copied/pasted? Jugglertwo Excel Discussion (Misc queries) 2 April 9th 05 12:45 PM


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