PC Review


Reply
Thread Tools Rate Thread

add new rows

 
 
NewAccessUser
Guest
Posts: n/a
 
      26th Jul 2008
i have row that i need to have copied and inserted directly beneath the
original row preserving all of the rows formulas and cell formatting.
currently, the row i am referring to is a combination of four rows. for
example, A2, A3, A4, and A5 are merged, as are B2, B3, B4, B5. however, this
pattern is not continued across all of the columns of the row. C1, D1, E1 are
merged and therefore one cell. C3, C4, and C5 are not merged (neither are
cells D3, D4, and D5). E3 and E4 are merged together.

A pattern similar to this continues until column I, where the spreadsheet
ends.

I need some sort of a button that the user can press that will automatically
insert the exact row directly beneath the row referred to above. If not a
button, then a box in which a user can input the amount of rows they wish to
have.

I've been working on this for days now and have gotten basically nowhere.
Any help would be greatly appreciated.

Thanks,



 
Reply With Quote
 
 
 
 
David McRitchie
Guest
Posts: n/a
 
      2nd Aug 2008
see
Insert a Row using a Macro to maintain formulas
http://www.mvps.org/dmcritchie/excel/insrtrow.htm
it is only set up to insert below one row it is not set up to work
with merged cells, you have to insert 4 rows before the row
after the 4 rows being copied. Then paste the original four rows
to the new four rows, in the new four rows select cells without
formulas and clear them with special cells .
--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm



"NewAccessUser" <(E-Mail Removed)> wrote in message
news:A287ADA8-FD40-4585-8782-(E-Mail Removed)...
> i have row that i need to have copied and inserted directly beneath the
> original row preserving all of the rows formulas and cell formatting.
> currently, the row i am referring to is a combination of four rows. for
> example, A2, A3, A4, and A5 are merged, as are B2, B3, B4, B5. however, this
> pattern is not continued across all of the columns of the row. C1, D1, E1 are
> merged and therefore one cell. C3, C4, and C5 are not merged (neither are
> cells D3, D4, and D5). E3 and E4 are merged together.
>
> A pattern similar to this continues until column I, where the spreadsheet
> ends.
>
> I need some sort of a button that the user can press that will automatically
> insert the exact row directly beneath the row referred to above. If not a
> button, then a box in which a user can input the amount of rows they wish to
> have.
>
> I've been working on this for days now and have gotten basically nowhere.
> Any help would be greatly appreciated.
>
> Thanks,
>
>
>

 
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
compare two files and merge rows base on a matching word within thesetwo rows mshak Microsoft Excel Programming 1 9th Dec 2009 01:34 AM
Access counts blank rows in Excel rows as records in linked table Linkerbink Microsoft Access External Data 1 14th Nov 2009 05:37 PM
"Add/Remove Rows Code" adds rows on grouped sheets, but won't remove rows. Conan Kelly Microsoft Excel Programming 1 16th Nov 2007 10:41 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


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 AM.