Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I use: =IF(Sheet2!D22,Sheet2!D22,"") in column A (with no value)
The code below works. IfI use: =Sheet2!D22 in column A (with no value) The code does not work. Why? Thanks, Bob Private Sub CommandButton1_Click() Dim rw As Long Application.ScreenUpdating = False 'Me is the object that owns the code 'in this case Sheet1 With Me 'Sheets("Sheet1") For rw = 1 To 30 If .Cells(rw, "A").Value = "" Then _ .Rows(rw).Hidden = True Next rw .PrintOut ' for testing use .PrintPreview .Range("A1:A30").EntireRow.Hidden = False End With Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Execute VB code depending on time of day | Excel Discussion (Misc queries) | |||
VBA code to automatically colour cells depending on text? | Excel Discussion (Misc queries) | |||
fomula which returns the amount depending on the currency code | Excel Discussion (Misc queries) | |||
Obtain rate for work center, depending on year | Excel Worksheet Functions | |||
Select stock code depending on description in next column | Excel Worksheet Functions |