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: , , , , ,

Sponsored Links



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: 120
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: 4,550
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: 4,810
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
raptor1234
 
Posts: n/a
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
Help me transposing multiple rows into one column with row labeling in Excel RYAN$ MS Office Support 2 3 Weeks Ago 06:31 PM
VBA to hide the rows in Microsoft Excel Lanka Boy MS Office Support 1 4 Weeks Ago 03:12 PM
How to auto insert rows in excel Yakov Windows Software 6 30-12-2011 01:21 AM
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 02:20 AM


All times are GMT +5.5. The time now is 11:51 AM.