Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Copy and Paste - Workbook to Workbook

I am looking for a way to copy a row of information from one workbook to
another.

A user sends their Workbook to us (Workbook 2). We open it and copy his/her
information in row 2 to the Master.xls

Workbook 1 file name is Master.xls
Workbook 2 file name changes

Need to copy row 2 from Workbook 2 to the next available row in Workbook 1
then save and close Workbook 1.

Thanks in advance!

Dwight




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy and Paste - Workbook to Workbook

Hi Dwight

Start here
http://www.rondebruin.nl/copy1.htm

The last example on the page will use a different workbook


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dwight" wrote in message ...
I am looking for a way to copy a row of information from one workbook to
another.

A user sends their Workbook to us (Workbook 2). We open it and copy his/her
information in row 2 to the Master.xls

Workbook 1 file name is Master.xls
Workbook 2 file name changes

Need to copy row 2 from Workbook 2 to the next available row in Workbook 1
then save and close Workbook 1.

Thanks in advance!

Dwight




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Copy and Paste - Workbook to Workbook

Ron,
Thank you!
How do save file name for Workbook 2 to a variable?

Dwight

"Ron de Bruin" wrote:

Hi Dwight

Start here
http://www.rondebruin.nl/copy1.htm

The last example on the page will use a different workbook


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dwight" wrote in message ...
I am looking for a way to copy a row of information from one workbook to
another.

A user sends their Workbook to us (Workbook 2). We open it and copy his/her
information in row 2 to the Master.xls

Workbook 1 file name is Master.xls
Workbook 2 file name changes

Need to copy row 2 from Workbook 2 to the next available row in Workbook 1
then save and close Workbook 1.

Thanks in advance!

Dwight





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy and Paste - Workbook to Workbook

If you copy the code in your personal.xls you can run the code
for the workbook that is active (No need to know the name)

You must change this line

Set SourceRange = ThisWorkbook.Sheets("Sheet1").Range("A1:K1")

To this for the range on the activesheet

Set SourceRange = Range("A1:K1")

See this page how you can copy the code in your personal file so
you can use the macro for any activeworkbook.
http://www.rondebruin.nl/personal.htm



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dwight" wrote in message ...
Ron,
Thank you!
How do save file name for Workbook 2 to a variable?

Dwight

"Ron de Bruin" wrote:

Hi Dwight

Start here
http://www.rondebruin.nl/copy1.htm

The last example on the page will use a different workbook


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dwight" wrote in message ...
I am looking for a way to copy a row of information from one workbook to
another.

A user sends their Workbook to us (Workbook 2). We open it and copy his/her
information in row 2 to the Master.xls

Workbook 1 file name is Master.xls
Workbook 2 file name changes

Need to copy row 2 from Workbook 2 to the next available row in Workbook 1
then save and close Workbook 1.

Thanks in advance!

Dwight





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
copy and paste using code from workbook to workbook bigdaddy3 Excel Discussion (Misc queries) 2 September 14th 05 11:06 AM
Selecting data from 1 workbook to copy and paste to a 2nd workbook JackSpam Excel Programming 2 July 20th 05 02:33 AM
automate copy and paste whole workbook to new workbook Leslie Excel Programming 4 July 1st 05 04:40 PM
Need a macro to copy a range in one workbook and paste into another workbook Paul Excel Programming 8 July 1st 04 07:42 AM
Copy a range of cells in an unopened workbook and paste it to the current workbook topstar Excel Programming 3 June 24th 04 12:50 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"