+ Reply to Thread
Results 1 to 3 of 3

SaveAs with special conditions

  1. #1
    Anolan
    Guest

    SaveAs with special conditions

    Hello,
    I want to save a copy of a master file (which I call template.xls, not.xlt)
    that contains a macro, command button and cell caption (in cell C3); however,
    I do not want the copy to include the macro, command button or caption. Is
    there a way in VB to accomplish this? Thank you. Andy

  2. #2
    bpeltzer
    Guest

    RE: SaveAs with special conditions

    I've copied a file sans macro by copying the appropriate worksheet(s) to a
    new workbook and saving the copy. You may need to explicitly delete the
    button from the copied sheet before saving.
    --Bruce

    "Anolan" wrote:

    > Hello,
    > I want to save a copy of a master file (which I call template.xls, not.xlt)
    > that contains a macro, command button and cell caption (in cell C3); however,
    > I do not want the copy to include the macro, command button or caption. Is
    > there a way in VB to accomplish this? Thank you. Andy


  3. #3
    Dave Peterson
    Guest

    Re: SaveAs with special conditions

    Chip Pearson shows how to remove code from a workbook at:
    http://www.cpearson.com/excel/vbe.htm

    But you may want to just copy the cells and paste special values (& formats).

    Or even set up a separate template that you can just paste special|values (have
    the formats already done).



    Anolan wrote:
    >
    > Hello,
    > I want to save a copy of a master file (which I call template.xls, not.xlt)
    > that contains a macro, command button and cell caption (in cell C3); however,
    > I do not want the copy to include the macro, command button or caption. Is
    > there a way in VB to accomplish this? Thank you. Andy


    --

    Dave Peterson

+ 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