save workbook no queries or formulas

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
Office Version
  1. 365
Platform
  1. Windows
i have a workbook created of worksheets with tables created by queries
i want to save the workbook no queries no formulas just the worksheets with the tables
what do i do
i tried so many ties and keep failing
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
i need to copy the book as is and remove the queries
 
Upvote 0
If you save your workbook as a .csv file or .xls for example. It will remove all queries because those aren't supported. Your records will be stored as values but make sure you have a backup first.
Otherwise the other solution I see is using a VBA code to copy all cells and paste in another workbook as value.
 
Upvote 0
can anyone assist
copy workbook as xlsx remove all queries and connections
 
Upvote 0
If you save your workbook as a .csv file or .xls for example. It will remove all queries because those aren't supported. Your records will be stored as values but make sure you have a backup first.
Otherwise the other solution I see is using a VBA code to copy all cells and paste in another workbook as value.
That won't work if it has multiple worksheets (as the original question implies), as a CSV can only save a single worksheet (since it is a flat file).

I would probably try creating VBA code to loop through all sheets and do a Copy --> Paste Special Values on each entire sheet, and then save the file.
 
Upvote 0
what would be the correct code?
That depends. You mentioned saving as an "xlsx".
If you want that, then the VBA code would have to be in a different workbook, as "xlsx" files cannot contain VBA code.
If you want the VBA code in the same file, then it must be saved as an "xlsm" or "xlsb".
So which option do you want?

If you want the VBA code in another file (or your Personal Macro Workbook), how would you like it to identify which file to apply the code to?
Will the file already be open, or do you want a prompt to select it?
 
Upvote 0
hi
i want an xlsx
no formulas
no queries workbook
just all the worksheets with tables
i cannot figure it out
 
Upvote 0
If you want my help, please answer ALL the questions from my previous post.
Also, when you say "Queries", what exactly do you mean? Querying from where/what?
Are you using Power Query?
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,428
Members
449,099
Latest member
COOT

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