save & close

  1. S

    How do I automate opening an excel document every 24 hours in the background, refresh connections, save and close the workbook in excel using vba?

    I have a workbook with a connection. I have gone to connection properties and set it to refresh periodically in the background. But I don’t know if it saves the document after the refresh. I don’t think so because the time of last modification of document doesn’t change. So I’m trying to...
  2. M

    Memory resource issue when opening and closing excel files

    I have a VBA program that loads a pivot table into a VBA array. The program then creates various spreadsheets required. It opens a new excel file, populates the data, then saves the file and closes the file. The program creates circa 270 excel / CSV files. However, just recently we have run...
  3. R

    VBA to Copy Multiple sheets to new workbook & save as .xlsb or .xlsx

    Hi, I have a vba code that needs to copy an array of sheets from one workbook & paste as values to another workbook & save the destination workbook as either xlsx or xlsx. Below is the code: Sub SaveSheetsAsCSV() Dim ws As Worksheet, ws1 As Worksheet Dim newWorkbook As Workbook...
  4. N

    Trying to cleanup many individual, macro-enabled workbooks with tables to rollup data with Power BI

    Hello, I have a data analysis project to roll up multiple individual, macro-enabled Excel workbooks with tables and formulas. Each workbook contains 31 individual sheets (one for each day of the month). The 31 individual day worksheets each contain nested Excel tables with formulas and are...
  5. K

    VBA Save Copy as csv complete with name and datestamp

    Hello, I'm really new when it comes to excel, and are really just trying to piece together strings from different forums alongside trying to learn. I'm trying to Save a Copy as a CSV file, without the need of choosing a file-name or path - I really just want the file to appear in the correct...
  6. S

    Place newly updated file into specific folder on network drive

    Hello all, I have done much digging in order to get this far but I'm still in little bit of a pickle. I am trying to make it so if a cell I have has a specific number form that it will save to a specific folder. In the Cell (L1) I have the date set as "mm-dd-yyyy hh-mm" and machine number ("11D...
  7. V

    How can I stop the prompt for saving an existing file when copying data from excel sheet?

    I have the following code: Sub addwb() Application.ScreenUpdating = False Dim wbNew As Workbook Sheet1.Copy Set wbNew = ActiveWorkbook wbNew.SaveAs "C:\Users\Owner\Documents\Automation\TestWB.xlsx", 51 wbNew.Close True End Sub but I am prompted if...
  8. A

    Opening workbooks and saving as using cell references

    Hello all, I have a workbook that will open multiple workbook and edit the data before saving and closing them. I'm now needing to save a copy of the first workbook under a new name in a new file path before I make any changes. The file paths of all workbooks are changing everyday, and as...
  9. dss28

    Excel crashing after running workbook save, close vba code

    While executing the following code I always get a message that "MS OFFICE EXCEL HAS STOPPED WORKING... ...... CHECK ONLINE FOR A SOLUTION...... CLOSE THE PROGRAM TO RESTART ......." Request to guide Private Sub cmdLogout_Click() ActiveWorkbook.Save ActiveWorkbook.Close...
  10. S

    Copy range from workbook and paste it into a closed workbook

    I'm wanting to log user inputs from one spreadsheet to another one that would be closed. It just needs to paste to the next available row. I've scoured the internet and am having trouble finding something that works. The below code will open the workbook but isn't copy/pasting the info or...

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