How can I insert a row and have it also continue the formulas?
I found the following but not sure if this is right or if so how to adapt it.
My formatted table is A1:AQ74 with the following formulas
Excel 2007
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
<tbody>
</tbody>
This is the code I found for inserting a row....
I found the following but not sure if this is right or if so how to adapt it.
My formatted table is A1:AQ74 with the following formulas
Excel 2007
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | Oct '12 | Patient | Referral | Referral | Referral | Referral | Case Mgr | Financial Class | Diagnosis | Evaluate | Denied / | Code | Reason | Activity | Discharge | Discharge | Admit | Admit | PND | PND | D/C | Phy | Med | SNFLR | UNIT | AMERI | United | BCBS | Coventry | Other | No | No | No | Transport Delay | Dr Approval | Other | Total Delay Time | (W)ithin 48 hrs / | Total Hours from | ||||
12 | Name | Facility | Date/Time | Day | Doctor | RN | Primary | Secondary | Date | Void ? | Level | Rec | Actual | Date/Time | Day | OT # | PT # | Delay | Delay | Hold | Head Bed | Bed | Bari Bed | Pt. Not Ready | Pt. Appt. | Delay | Hours:Minutes | (N)ot within 48 hrs | Ref. to Adm. | ||||||||||||||
13 | 1 | Jane Doe | VCH-F | 1/13/13 10:00 AM | Sunday | Grundmeyer | Joan | M | BC | CVA | 1/4/13 | 1/16/13 1:00 PM | Wednesday | 0:12 | 3:30 | 3:42 | W | 30 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Nov 12
Worksheet Formulas
<thead> </thead><tbody> </tbody> |
<tbody>
</tbody>
This is the code I found for inserting a row....
Code:
Sub Add_Row_and_Formula()
Dim insRows As Long
insRows = ActiveCell.Row
Selection.Insert Shift:=xlDown
Range("AB" & insRows - 1).Select
Selection.AutoFill Destination:=Range _
("AB" & insRows - 1, "AB" & insRows), Type:=xlFillValues
Range("AB" & insRows - 1, "AB" & insRows).Select
Range("AB" & insRows).Select
End Sub