+ Reply to Thread
Results 1 to 2 of 2

Delete All the Formulas after 2 times open excel file

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Delete All the Formulas after 2 times open excel file

    HI,I want to VBA code for Delete All the Formulas in excel after 2 times open excel file

    .. Please help

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Delete All the Formulas after 2 times open excel file

    You could try something like this.
    It creates a copy of the file with values only instead of formulas

    Create a new sheet and name it XXX
    - its only purpose is to keep count
    - while testing you may want to keep resetting XXX cell A1 back to zero!

    In the ThisWorkbook module
    Please Login or Register  to view this content.

    The above macro saves as .xlsm, use this method to save as .xlsx (adapt to suit)
    ActiveWorkbook.SaveAs Filename:=newFileFullName, FileFormat:=xlOpenXMLWorkbook
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel 2013 File having multiple formulas taking too much time to Open - Pls Help!!
    By vs.suresh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2016, 12:04 PM
  2. Delete a file that has just been saved and open original file or vice versa.
    By SHB19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2015, 07:48 AM
  3. Replies: 0
    Last Post: 05-28-2015, 05:21 AM
  4. One Excel File Open 2 Times.
    By dbaker85 in forum Excel General
    Replies: 1
    Last Post: 05-08-2015, 03:46 PM
  5. [SOLVED] Macro to open different file at different times
    By mfmalthaf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2012, 11:01 AM
  6. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 AM
  7. Delete/Close Excel file that is kept OPEN
    By Jafer in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-15-2005, 01:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1