Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default insert new row & fill down

Hi,

I'm trying to write a macro that allows users to insert a
new blank row anywhere on the spreadsheet AND fill down
the formulas from the above row.

For example,

Sheet 1 - an user wants to insert a blank row on line 50
and copy the formula from line 49 and the whole
spreadsheet shifts down one cell.

I've tried the record macro function and edit the script
but I get a run-error.

Here's the record macro script:

Sub testinsert()
Rows.EntireRow.Select
Selection.Insert Shift:=xlDown
Selection.FillDown
End Sub

I got a run-time error on line 2.

Thanks in advance.
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
Insert rows and fill formulas Chris Excel Discussion (Misc queries) 3 December 27th 09 11:03 PM
Insert "-" in already fill cell adeel via OfficeKB.com Excel Discussion (Misc queries) 2 September 15th 08 07:55 AM
Automatically insert fill colour when data is added? suzi Excel Worksheet Functions 2 November 17th 04 02:55 PM
Automatically insert fill colours? suzi Excel Worksheet Functions 1 November 17th 04 02:40 PM
help on insert rows and fill down loop until end mark mcgrath Excel Programming 1 January 16th 04 01:50 AM


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