LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Insert Row and copy formulas

I'm inserting a row and would like the newly inserted row
to have the same cell formulas (relative ref's) and cell
formats as the originally selected row. Is this possible?

The first row of my worksheet has labels. Row 2 thru n
contain data records. Some of the data record cells have
formulas. I want to insert a new row below the labels
with the same cell formats and formula as the other data
records. My current steps a

WS.Range("A2").Select
Selection.EntireRow.Insert

A row is inserted below the labels but the new row
inherits the cell formats from the label row rather than
the selected 1st data row and there are no forumlas.

If this is not possible during the insertion, is there a
simple way to copy/paste the cell formats and formulas
from the 1st data record to the newly inserted row? I
could then insert the row, set the row cell values to
NULL, copy/paste the 1st data record format/formulas to
the newly inserted row then initialize whatever cell
values I want.

thanks.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert row and copy formulas Hugh Excel Discussion (Misc queries) 5 September 25th 09 05:28 PM
Macro to insert a row and copy down formulas from row above Sal Excel Discussion (Misc queries) 2 December 3rd 07 05:33 AM
Copy and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Copy/Insert rows with formulas GregR Excel Worksheet Functions 4 April 26th 05 10:29 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"