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: 277
Default Keeping formulas on an insert

Hey folks.

I have a macro where I select a whole row, and the insert it at a
location. There are formulas above and below the insertion.
the copied row has the formula, but it fails to carry on the paste.

I think maybe all I need to do is add some declaration in the insert
line to grab it as well or...

Anyway, here is the code snip.

Sub ProgAdd()
'
' ProgAdd Macro
' Insert a line within a named range for the Program Listing

Sheets("Programs").Select
Range("WOLineAdd").Select
Selection.Copy
Range("NewProgLine").Select
Selection.Insert Shift:=xlDown
End Sub

The "NewProgLine" select an entire row at the bottom of the 'table'.
This makes the insertion within a previously defined range.

One of the cells has a formula in it.

So, I guess what I really want is a "copy" and then an "Insert copied
Cells" coding to carry everything that copied row contains.
 
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
Keeping Formulas Not Data Jenni R Excel Worksheet Functions 1 June 5th 10 01:27 AM
how do I insert row keeping formulas from previous row? Todd108 Excel Discussion (Misc queries) 1 October 29th 09 06:04 PM
insert row keeping borders Lise Excel Discussion (Misc queries) 1 May 6th 06 05:36 PM
Insert some cells by keeping the title block as same S.G.Pillai Excel Discussion (Misc queries) 0 February 27th 06 01:19 PM
Help with keeping formulas in place! tapuza Excel Discussion (Misc queries) 2 December 23rd 05 07:24 PM


All times are GMT +1. The time now is 04:15 AM.

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"