Copy Worksheets are the same time with Tables to another Workbook via MACRO

rickyguzman

New Member
Joined
Mar 22, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
So there seems to be a limitation with Excel that if I have tables, I can not copy worksheets at the same time that contains tables.

What I am trying to do with a macro is to move two sheets to a new workbook. the problem is that if I move them one a at time, Excel will name the active workbook as Book1, Book2, etc...and the next time the Macro runs, it will give an error because is trying to find the old book1, book2....

I am able to save as first and then I can reference the open workbook, however because I am in a work network, I am not able to save to the same path for everyone (i.e. User/XXXX?Desktop)

Is there any way I can copy one at a time but forcing the new active workbook with always have the same name?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,216,165
Messages
6,129,235
Members
449,496
Latest member
Patupaiarehe

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