Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Excel as a quoting system. This Macro hides rows that do not have
quantities in them, but they have to have a zero value in them, not just blank. It worked pretty fast until I added about a dozen simple macros to simply hide rows and columns, those macros were not dependent on any data, simply just highlighted the rows and columns and hid them. After adding these "simple" macros, the original macro to hide un-used products with no quantities went EXTREMELY slow on me. All of the command buttons, I assigned the "simple" macros to blink when I run this most important macro. The code is below: Private Sub CommandButton5_Click() Dim cell As Range, rng As Range Cells.Rows.Hidden = False On Error Resume Next Set rng = Columns(2).SpecialCells(xlConstants, xlNumbers) On Error GoTo 0 For Each cell In rng If cell.Value = 0 Then cell.EntireRow.Hidden = True End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Speed up macro | Excel Discussion (Misc queries) | |||
Speed Up Macro | Excel Programming | |||
How to speed up this macro? | Excel Programming | |||
Speed-up a macro! | Excel Programming | |||
Speed up macro | Excel Discussion (Misc queries) |