Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I assume you have a total row with formulas. You probably want to always have one blank row between the total row and the last line of data. Use a worksheet change function and search for total in column A. then check if the row below the word total is blank like this Private Sub Worksheet_Change(ByVal Target As Range) set c = columns("A").find(what:="Total", lookin:=xlvalues,lookat:=xlwhole) if not c is nothing then if c.offset(-1,0) < "" then rows(c.row).insert end if end if end Sub "Mark" wrote: Community Message Not Available |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enabling option „Format rows“ to hide/unhide rows using VBA-code? | Excel Discussion (Misc queries) | |||
Code for Excel 2007 to hide rows based on sum of several rows not ina range | Excel Programming | |||
"Add/Remove Rows Code" adds rows on grouped sheets, but won't remove rows. | Excel Programming | |||
Copy rows of data (eliminating blank rows) from fixed layout | Excel Discussion (Misc queries) | |||
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th | Excel Discussion (Misc queries) |