VBA to copy sheet to another workbook without locking the source?

damian_r_Home

Board Regular
Joined
Jan 8, 2005
Messages
231
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Afternoon all.

I put a post up a few days ago about a way of doing this and have since decided that perhaps VBA is the way to go.

https://www.mrexcel.com/forum/excel...ically-copy-entire-sheet-one-xls-another.html

Anyway, a brief description of what i am looking to do is as follows.


I have a spreadsheet that needs to pull data from another spreadsheet but without locking up the source

The duplicate spreadsheet is
C:\DJR\test duplicate\Duplicate.xlxs

The source spreadsheet is located at
C:\DJR\test duplicate\Source.xlxs

I need sheet named DRGS in source to be copied into sheet 1 of the duplicate spreadsheet.

Can anyone help with writing the VBA in duplicate sheet 1 at all?

Thanks in advance.

T
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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