+ Reply to Thread
Results 1 to 5 of 5

Save a file without saving the macro

  1. #1
    ina
    Guest

    Save a file without saving the macro

    Hello guys,

    I would like to know how to save a file without saving the macro that
    generates the save mode.

    Ina


  2. #2
    RB Smissaert
    Guest

    Re: Save a file without saving the macro

    Simplest to go to the VBE (Alt + F11) and delete the module that holds the
    macro's:
    Ctrl + R, right-click the module and do remove Module1 or whatever it is
    called.
    Make double-sure you remove the right module and not something else that is
    important to keep.
    Then save the workbook.

    RBS

    "ina" <[email protected]> wrote in message
    news:[email protected]...
    > Hello guys,
    >
    > I would like to know how to save a file without saving the macro that
    > generates the save mode.
    >
    > Ina
    >



  3. #3
    ina
    Guest

    Re: Save a file without saving the macro

    yes but this file will be save everyday I need to do a script that
    remove it automatically without going everyday to delete it.

    Ina


  4. #4
    RB Smissaert
    Guest

    Re: Save a file without saving the macro

    Look at this:
    http://www.cpearson.com/excel/vbe.htm

    RBS

    "ina" <[email protected]> wrote in message
    news:[email protected]...
    > yes but this file will be save everyday I need to do a script that
    > remove it automatically without going everyday to delete it.
    >
    > Ina
    >



  5. #5
    ina
    Guest

    Re: Save a file without saving the macro

    thanks I tried that but and had a lot of problem because to delete it
    is better to copy the file in another place and after delete. but I
    result my problem like this

    Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Copy
    ActiveWorkbook.SaveAs Filename: ... this copy only the result in
    the sheet but not the code.

    Ina


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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