Copying data from one workbook to another

lordriel

Board Regular
Joined
Nov 1, 2005
Messages
68
Office Version
  1. 365
Platform
  1. Windows
I'm having a problem with what, I hope, is a situation that has an obvious answer that I'm simply overlooking.

Here are the basic details of what I'm doing:

1. Periodically a report is ran and sent via email attachment in xls format that is saved to the user's computer
2. Via userform, the user opens up the attachment
3. Key data from the workbook is copied over into another workbook, sorted and used to populate several fields in a formatted coversheet
4. Multiple activities take place after this

The problem is...I can work within a single workbook without any serious issue. However, bringing data from one workbook to another has given me issue.

Coding the process for populating the coversheet infomation is also no issue...if I have the data in place.

Any help would be greatly appreciated!

lr
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I give you a generalized reply. you should modify to suit your conditions.

insert the following code in a macro (press Alt F8)

cells(1,1) = workbooks("abc.xls").worksheets("sheet3").cells(1,1)

this will copy contents of cells(1,1) from sheet 3 of workbook abc.xls into your current workbook

ravi
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,080
Members
448,943
Latest member
sharmarick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top