Author: Fred Taylor
Posted: 2011-03-01 at 14:24:47
oExcel.Rows(5).Insert() inserts before the row specified. There are
parameters to the Insert() method, but I don't know off the top of head what
the parameters are. Once you've inserted a row, you can put you copy in
that new blank row.
Fred
On Tue, Mar 1, 2011 at 11:55 AM, Jerry Foote <jerryf@footegroup.com> wrote:
> Fred
> I did not make my self clear, I need to insert the copied row into the
> sheet
> so that for a time I have two records with the same data. It looks like it
> just copy the data to the new row.
> Ideally the record I copy will be inserted before of after the select
> record
> Sorry
> Thanks Jerry
>
>
> -----Original Message-----
> From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
> Of Fred Taylor
> Sent: Tuesday, March 01, 2011 11:40 AM
> To: ProFox Email List
> Subject: Re: Copy Excel Row with automation
>
> Whoops, that should be:
>
> Copy row 5 with formulas and data to row 10:
>
> oExcel.Rows(5).Select()
> oRow=oExcel.Selection
> oRow.Copy(oExcel.Rows(10))
>
>
> Fred
>
>
> On Tue, Mar 1, 2011 at 10:28 AM, Jerry Foote
> <jerryfoote@bellsouth.net>wrote:
>
> > I need to copy a row with the formulas from a excel sheet and then insert
> > it
> > somewhere else and then change some data in the row
> >
> > I can change data and insert formulas but hoping for a copy option
> >
> >
> >
> > Thanks Jerry
> >
> >
> >
> > --- StripMime Report -- processed MIME parts ---
> > multipart/alternative
> > text/plain (text body -- kept)
> > text/html
> > ---
> >
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/AANLkTimTHVzJEV_C_aNB94sjmeH0f2G=Cv8euutWMVXB@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.