Copy sheet from another workbook using VBA

ElvisSteel

Board Regular
Joined
Mar 23, 2009
Messages
122
Hi,

I have a workbook and I need to prompt the user for another workbook, then automtically copy an entire sheet from the selected workbook into the current workbook.
I am OK with the code to prompt and select another worksheet, but I am struggling with the code to do the copying of the entire sheet.

Can someone help please

Thanks

Steve
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
this a bit unclear. need more details.
there is no need to select the data when copying it.

is the data that you need to copy is normaly fix , i mean number of columns and rows.

there is no problem normally with the number of rows.

just give more details please. like the name of the two workbooks and the sheet of each
 
Upvote 0
Thanks for your response and apologies for any confusion.

I have managed to work out what I was doing wrong, so sorry to have wasted your time

Regards

Steve
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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