Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Insert Row with a macro
When I use the following code in an Excel macro to insert a row, it does not
work correctly. Instead of inserting just one row above the TOTAL EXPENSES row, rows will continue to be inserted until the worksheet runs out of rows. Could someone please help me. For Each c In [A1:A150] If c Like "TOTAL EXPENSES" Then c.Activate ActiveCell.EntireRow.Insert End If Next I have to use the "TOTAL EXPENSES" instead of the row number because this is a report I import from another program and the row number that TOTAL EXPENSES appears in varies from report to report depending on how many expenses are in each report. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert date in macro | New Users to Excel | |||
Insert Line Macro | Excel Discussion (Misc queries) | |||
How do I insert the date using a macro | Excel Discussion (Misc queries) | |||
How to insert a Macro within a macro? | Excel Discussion (Misc queries) | |||
Challenging Charting | Charts and Charting in Excel |