Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Paste Special prob

Having copied a row I need to paste ONLY the formulas which occur in some
cells into another row. I want to leave the other cells empty and not paste
in the values.

I asked a similar question earlier (12/11/2008 3:41) but did not get a
satisfsactory answer - I only want the formulas pasted into the new row.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Paste Special prob

Copy and paste the whole row, constants, formulas, everything. Then select
the row you just pasted. Hit the F5 key. Select Special - Constants. This
selects only those cells that have constants. Hit the Delete key. HTH
Otto
"camlad" wrote in message
...
Having copied a row I need to paste ONLY the formulas which occur in some
cells into another row. I want to leave the other cells empty and not
paste
in the values.

I asked a similar question earlier (12/11/2008 3:41) but did not get a
satisfsactory answer - I only want the formulas pasted into the new row.

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Paste Special prob

Many thanks Otto - you pointed me in the right direction to write this macro
which is what I wanted to recreate, having lost it recently:

Sub InsertBlankRowIncFormulas()
Application.ScreenUpdating = False
'Insert row above selected cell
Selection.EntireRow.Insert
ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Select
Selection.Copy
ActiveCell.Offset(-1, 0).Range("A1").Select
ActiveSheet.Paste
'Clear cell colors
Selection.Interior.ColorIndex = xlNone
'Clear contents of cells
Selection.SpecialCells(xlCellTypeConstants, 23).Select
Selection.ClearContents
'Clear any comments
ActiveCell.Rows("1:1").EntireRow.Select
Selection.ClearComments
'End in Name cell
Cells(ActiveCell.Row, 2).Select
End Sub


"Otto Moehrbach" wrote:

Copy and paste the whole row, constants, formulas, everything. Then select
the row you just pasted. Hit the F5 key. Select Special - Constants. This
selects only those cells that have constants. Hit the Delete key. HTH
Otto
"camlad" wrote in message
...
Having copied a row I need to paste ONLY the formulas which occur in some
cells into another row. I want to leave the other cells empty and not
paste
in the values.

I asked a similar question earlier (12/11/2008 3:41) but did not get a
satisfsactory answer - I only want the formulas pasted into the new row.

Any suggestions?




Reply
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
Paste and Paste Special No Longer Working - Excel 2003 SheriJ Excel Discussion (Misc queries) 2 January 15th 09 09:23 PM
Automating copy/paste/paste special when row references change Carl LaFong Excel Programming 4 October 8th 07 06:10 AM
Excel cut/paste prob: Adds one day and changes year to 2009 Maisha1908 Excel Discussion (Misc queries) 3 February 7th 05 07:19 PM
How do I capture user paste action and convert to Paste Special DonC Excel Programming 0 November 19th 04 01:43 PM
Dynamic Copy/Paste Special Formulas/Paste Special Values Sharon Perez Excel Programming 3 August 7th 04 09:49 PM


All times are GMT +1. The time now is 06:07 PM.

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

About Us

"It's about Microsoft Excel"