Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Insert Row - Copy Formula From The Row Above

Hi,

Is there anyway that I can insert a row and have it copy the formula from
certain cells in the row above? Such as from the columns C & L?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Insert Row - Copy Formula From The Row Above

David McRitchie has a macro that you may want to review:

http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Phendrena wrote:

Hi,

Is there anyway that I can insert a row and have it copy the formula from
certain cells in the row above? Such as from the columns C & L?

Thanks,


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Insert Row - Copy Formula From The Row Above

Many thanks that has helped a great deal and works like a charm.
However, this only works on unproteced worksheets.

Is there any way using the following :-

ActiveSheet.Unprotect & ActiveSheet.Protect DrawingObjects:=True,
Contents:=True, Scenarios:=True

That i can get it to use a password?

Thanks,



"Dave Peterson" wrote:

David McRitchie has a macro that you may want to review:

http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Phendrena wrote:

Hi,

Is there anyway that I can insert a row and have it copy the formula from
certain cells in the row above? Such as from the columns C & L?

Thanks,


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Insert Row - Copy Formula From The Row Above

Activesheet.unprotect password:="YourPasswordHere"
'code to insert the row and copy the formulas
ActiveSheet.Protect password:="YourPasswordHere", _
DrawingObjects:=True, Contents:=True, Scenarios:=True

Phendrena wrote:

Many thanks that has helped a great deal and works like a charm.
However, this only works on unproteced worksheets.

Is there any way using the following :-

ActiveSheet.Unprotect & ActiveSheet.Protect DrawingObjects:=True,
Contents:=True, Scenarios:=True

That i can get it to use a password?

Thanks,

"Dave Peterson" wrote:

David McRitchie has a macro that you may want to review:

http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Phendrena wrote:

Hi,

Is there anyway that I can insert a row and have it copy the formula from
certain cells in the row above? Such as from the columns C & L?

Thanks,


--

Dave Peterson


--

Dave Peterson
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
Copy and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
insert row and copy formula Andy B Excel Discussion (Misc queries) 4 May 29th 07 02:44 PM
Insert Row & Copy Formula redruthann Excel Worksheet Functions 0 March 26th 06 11:51 PM
Automatically insert row and copy formula Wendy Excel Worksheet Functions 5 August 25th 05 06:35 PM
Insert Formula and Copy to other cells [email protected] Excel Discussion (Misc queries) 1 August 12th 05 08:51 PM


All times are GMT +1. The time now is 07:25 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"