Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sal Sal is offline
external usenet poster
 
Posts: 84
Default Macro to insert a row and copy down formulas from row above

Hi,

I have a workbook that has 52 protected sheets. In the data entry area
(which is not protected), I would like to create a macro so that at the touch
of a button, a new row is inserted and it will copy all the formulas down
from the row above. There are 6 rows containing formulas D, Q (these two
are hidden columns), R, S, T & U.

The first time this is run the row will be inserted after row 125 and the
next time after row 126 and so on.

I had a go at recording a macro which took the protection off the sheet,
unhid the columns D & Q inserted a row, copied down the formulas, rehid the
columns and reprotected the sheet.

Something went horribly wrong as it hid all of my columns up to Z.

Can anyone offer me some help.

Many thanks....
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Macro to insert a row and copy down formulas from row above

Maybe you can start with the procedure that David McRitchie shares:
http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Sal wrote:

Hi,

I have a workbook that has 52 protected sheets. In the data entry area
(which is not protected), I would like to create a macro so that at the touch
of a button, a new row is inserted and it will copy all the formulas down
from the row above. There are 6 rows containing formulas D, Q (these two
are hidden columns), R, S, T & U.

The first time this is run the row will be inserted after row 125 and the
next time after row 126 and so on.

I had a go at recording a macro which took the protection off the sheet,
unhid the columns D & Q inserted a row, copied down the formulas, rehid the
columns and reprotected the sheet.

Something went horribly wrong as it hid all of my columns up to Z.

Can anyone offer me some help.

Many thanks....


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Sal Sal is offline
external usenet poster
 
Posts: 84
Default Macro to insert a row and copy down formulas from row above

Hi Dave,

Many thanks, it has worked a treat.



"Dave Peterson" wrote:

Maybe you can start with the procedure that David McRitchie shares:
http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Sal wrote:

Hi,

I have a workbook that has 52 protected sheets. In the data entry area
(which is not protected), I would like to create a macro so that at the touch
of a button, a new row is inserted and it will copy all the formulas down
from the row above. There are 6 rows containing formulas D, Q (these two
are hidden columns), R, S, T & U.

The first time this is run the row will be inserted after row 125 and the
next time after row 126 and so on.

I had a go at recording a macro which took the protection off the sheet,
unhid the columns D & Q inserted a row, copied down the formulas, rehid the
columns and reprotected the sheet.

Something went horribly wrong as it hid all of my columns up to Z.

Can anyone offer me some help.

Many thanks....


--

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
Macro - Insert/Copy John Britto Excel Discussion (Misc queries) 0 November 15th 07 10:01 AM
Macro to Insert and copy entire row CCrew2000 Excel Discussion (Misc queries) 3 June 26th 07 03:16 PM
Macro that will Cut rows and then insert-copy or append rod Excel Discussion (Misc queries) 3 October 21st 06 04:50 PM
Copy and insert cell info macro help JackR Excel Discussion (Misc queries) 2 March 21st 06 03:22 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 06:56 AM.

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"