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
---
_______________________________________________
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/3962724A159843B2944957A816F2464B@jerryfootePC
** 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.
Copy row 5 with formulas to row 10:
oExcel.Rows(5).Select()
oRow=ox.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/AANLkTim1uk=f8g+j0EioU2o8C0AUCgQ_eM7LSD19QrFS@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.
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/AANLkTinS+9eDOXq7W1NLeNL0jG5WDk06xcNin9ZavUhX@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.
Wow that's simple enough
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/E9851907BA40478A8FA124E6C1A24394@jerryfootePC
** 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.
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/183BA6BA7B4641CBA8E32865A7EC9753@jerryfootePC
** 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.
> -----Original Message-----
> From: profoxtech-bounces@leafe.com
[mailto:profoxtech-bounces@leafe.com]
> On Behalf Of Jerry Foote
> Sent: Tuesday, March 01, 2011 10:56 AM
> To: profoxtech@leafe.com
> Subject: RE: Copy Excel Row with automation
>
> 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
>
Jerry-
I have a PRG that I wrote for a series I did on Office Automation a
number of years ago for VFUG. It doesn't exactly address what you are
doing but it touches on a lot of neat features of automating Excel (and
Word).
It shows Inserting rows and such and some other goodies...
I'd be happy to send it to you (and anyone else) that wants to see it
just for a reference...
Thanks,
Matthew Jarvis || Business Systems Analyst
IT Department
McKenzie-Willamette Medical Center
1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax:
541-744-6145
--------------------------------------------------------------------------
Disclaimer: This electronic message may contain information that is
Proprietary, Confidential, or legally privileged or protected. It
is intended only for the use of the individual(s) and entity named
in the message. If you are not an intended recipient of this
message, please notify the sender immediately and delete the
material from your computer. Do not deliver, distribute or copy
this message and do not disclose its contents or take any action in
reliance on the information it contains.
_______________________________________________
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/69F310C05DD83C48A84BA3769CE1ECF80457E697@TNTRIEXEVS02.triadhospitals.net
** 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.
Thanks
A picture is worth a thousand questions.
My email is jerryf_at_footegroup_dot_com
Thanks again
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of Jarvis, Matthew
Sent: Tuesday, March 01, 2011 1:11 PM
To: profox@leafe.com
Subject: RE: Copy Excel Row with automation
> -----Original Message-----
> From: profoxtech-bounces@leafe.com
[mailto:profoxtech-bounces@leafe.com]
> On Behalf Of Jerry Foote
> Sent: Tuesday, March 01, 2011 10:56 AM
> To: profoxtech@leafe.com
> Subject: RE: Copy Excel Row with automation
>
> 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
>
Jerry-
I have a PRG that I wrote for a series I did on Office Automation a
number of years ago for VFUG. It doesn't exactly address what you are
doing but it touches on a lot of neat features of automating Excel (and
Word).
It shows Inserting rows and such and some other goodies...
I'd be happy to send it to you (and anyone else) that wants to see it
just for a reference...
Thanks,
Matthew Jarvis || Business Systems Analyst
IT Department
McKenzie-Willamette Medical Center
1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax:
541-744-6145
--------------------------------------------------------------------------
Disclaimer: This electronic message may contain information that is
Proprietary, Confidential, or legally privileged or protected. It
is intended only for the use of the individual(s) and entity named
in the message. If you are not an intended recipient of this
message, please notify the sender immediately and delete the
material from your computer. Do not deliver, distribute or copy
this message and do not disclose its contents or take any action in
reliance on the information it contains.
[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/EACCE77342984132BE8F171783A45C8B@jerryfootePC
** 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.
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.
Thanks Fred
That works, I was trying to skip the effort to copy all the formulas.
Thanks Jerry
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of Fred Taylor
Sent: Tuesday, March 01, 2011 1:25 PM
To: ProFox Email List
Subject: Re: Copy Excel Row with automation
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/FE544DA6C64C490E9CDE8F7B14E8ECFD@jerryfootePC
** 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.