Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Auto hide rows and column in Excel 2007

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-02-2009
Murena's Avatar
Member
 
Join Date: Dec 2008
Posts: 131
Auto hide rows and column in Excel 2007

Hi,
I have an Excel sheets which has a list of services table where certain row has 0 value i want to print those sheets but i want to auto hide those 0 value row and column from that sheet automatically.

Thank you
Reply With Quote
  #2  
Old 28-02-2009
Glenny's Avatar
Member
 
Join Date: May 2008
Posts: 2,820
Re: Auto hide rows and column in Excel 2007

Code:
Sub AutoFilter()
    Range("A1:Z300").AutoFilter
    Selection.AutoFilter Field:=10, Criteria1:="<>"
End Sub
Sub Macro3()


Sub TurnFilterOff()
'removes AutoFilter if one exists
  Worksheets("Sheet1").AutoFilterMode = False
End Sub
this may work but if you just want to see non blank cells, then you could use this code
Reply With Quote
  #3  
Old 28-02-2009
Macarenas's Avatar
Member
 
Join Date: May 2008
Posts: 3,057
Re: Auto hide rows and column in Excel 2007

Try this
  • Open an Excel workbook
  • Select Tools/Macro/Visual Basic Editor
  • In the VBE window, select Tools/Project Explorer
  • Select the worksheet module for the linked sheet
  • Copy and paste the code into this Module
  • Now select File/Close and Return To Microsoft Excel
  • Save your changes...

Now download this attachment to see the code

HideBlankLinkedRows.zip 8.94KB

Reply With Quote
  #4  
Old 28-02-2009
Banned Users
 
Join Date: Feb 2009
Posts: 3
Re: Auto hide rows and column in Excel 2007

you can just use the filers from the menu and do the same thing without this code..
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Auto hide rows and column in Excel 2007"
Thread Thread Starter Forum Replies Last Post
Hiding rows in Excel 2007 using macros sam007 Windows Software 3 16-10-2009 01:57 PM
Excel 2007 change Maximum no of Column Sachit Windows Software 3 08-07-2009 10:10 AM
How to auto insert rows in excel Yakov Windows Software 3 26-05-2009 03:25 PM
How do i automatically number rows in Excel 2007 Atilla Windows Software 3 21-04-2009 10:48 AM
Hide rows in EXCEL Marc H. Microsoft Project 3 03-12-2008 01:20 AM


All times are GMT +5.5. The time now is 04:30 PM.