PC Review


Reply
Thread Tools Rate Thread

Can I have default data in new rows?

 
 
Karl
Guest
Posts: n/a
 
      6th Mar 2010
I have a sheet that the first 5 rows have "administrative" data and some sums
of the data below, basically it's a "header" section, the entire worksheet
below that, the first 15 columns hold all the data for the worksheet. What I
want to do is whenever someone inserts a new row or starts on a blank row at
the bottom, to autofill some of the data within the columns, some of them are
formulas and some are simple like "Yes/No" drop down lists. Can you do a
"onNewRow" event type macro to copy formulas or is there simply a default
data fill option in excel?
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      6th Mar 2010
Something like this ??

Sub insertrowwithdefaults()
ar = ActiveCell.Row
Rows(ar).Insert
Cells(ar, 1) = 12
Cells(ar, 2).Formula = "=a" & ar & "*2"
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Karl" <(E-Mail Removed)> wrote in message
news:4969C610-1DF0-4075-BD06-(E-Mail Removed)...
>I have a sheet that the first 5 rows have "administrative" data and some
>sums
> of the data below, basically it's a "header" section, the entire worksheet
> below that, the first 15 columns hold all the data for the worksheet.
> What I
> want to do is whenever someone inserts a new row or starts on a blank row
> at
> the bottom, to autofill some of the data within the columns, some of them
> are
> formulas and some are simple like "Yes/No" drop down lists. Can you do a
> "onNewRow" event type macro to copy formulas or is there simply a default
> data fill option in excel?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
colating multi rows of data into single rows - no to pivot tables! UKMAN Microsoft Excel Worksheet Functions 4 12th Mar 2010 04:11 PM
Auto extract data & inserts rows additional rows automatically Meeru Microsoft Excel Misc 3 9th Sep 2009 01:46 PM
Copy rows of data (eliminating blank rows) from fixed layout =?Utf-8?B?U3dlZXBlYQ==?= Microsoft Excel Misc 1 13th Mar 2007 11:05 PM
DataGrid, Windows - Does not refresh. data is in the rows but they are not visible, the rows are solid blue Richard Microsoft C# .NET 1 2nd Sep 2005 01:56 PM
dynamically add new rows and save data typed in these rows to a database Arjen Hoekstra Microsoft ASP .NET 0 2nd Aug 2005 01:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 PM.