Copy Sheet from close to open file

Dokman

New Member
Joined
Dec 6, 2023
Messages
7
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hello,

Close file name is "Datameetlijst.xlsx"
Open file name is "Alldata.xlsx"

I want to copy all the date from a close file (1 sheet) to the open file.

On the close file, the sheet name is "JA"
and on the open file it's "Data"

First it's clear every thing that's in the sheet "Data" and then it's must put in all the data from the close file.

I can do a script open Datameetlijst.xlsx after copying the file close Datameetlijst.xlsx
But I can file the rest to copy the data from one file to the other file.

Thanks for helping me out.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
A method that could get you going is to record a macro and go through the actions you are doing manually and it will provide the script and method your using and then post the code in your thread and it should help providing a solution that will work for you.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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