+ Reply to Thread
Results 1 to 2 of 2

saving documents with macros

  1. #1
    shrek
    Guest

    saving documents with macros


    I have a spreadsheet which I save with a different number every month
    i.e 0601,0602 and so on. Im trying to set a macro up so it
    automatically saves the file and increases the number by one so it dont
    overwrite the existing file.

    Anyone any ideas how I can do this.

    Many Thanks


    --
    shrek

  2. #2
    bpeltzer
    Guest

    RE: saving documents with macros

    Your macro will have to use the SaveAs method and 'calculate' the filename.
    Something like
    ActiveWorkbook.SaveAs Filename:="c:\output\" & Format(Date, "yymm") & ".xls"
    --Bruce

    "shrek" wrote:

    >
    > I have a spreadsheet which I save with a different number every month
    > i.e 0601,0602 and so on. Im trying to set a macro up so it
    > automatically saves the file and increases the number by one so it dont
    > overwrite the existing file.
    >
    > Anyone any ideas how I can do this.
    >
    > Many Thanks
    >
    >
    > --
    > shrek
    >


+ 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