+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    09-29-2005
    Posts
    11

    Saving current workbook

    I have an Excel spreadsheet that uses VB to watch for entries in certain cells. At times an 'aduit' feature is triggered to write entries to a protected sheet.

    There are a couple of these I woudl like to ensure get saved without further intervention.

    I see there is a SaveAs function that could do this - but is there the equivalent to simply save the current worksheet back as the same filename that was used to open it? Ie the equivalent of clicking the Save Disc icon.

    Regards
    Clive

  2. #2
    Tom Ogilvy
    Guest

    Re: Saving current workbook

    Thisworkbook.Save

    or

    ActiveWorkbook.Save

    --
    Regards,
    Tom Ogilvy

    "ccarmock" <ccarmock.20wsoy_1136040301.7008@excelforum-nospam.com> wrote in
    message news:ccarmock.20wsoy_1136040301.7008@excelforum-nospam.com...
    >
    > I have an Excel spreadsheet that uses VB to watch for entries in certain
    > cells. At times an 'aduit' feature is triggered to write entries to a
    > protected sheet.
    >
    > There are a couple of these I woudl like to ensure get saved without
    > further intervention.
    >
    > I see there is a SaveAs function that could do this - but is there the
    > equivalent to simply save the current worksheet back as the same
    > filename that was used to open it? Ie the equivalent of clicking the
    > Save Disc icon.
    >
    > Regards
    > Clive
    >
    >
    > --
    > ccarmock
    > ------------------------------------------------------------------------
    > ccarmock's Profile:

    http://www.excelforum.com/member.php...o&userid=27670
    > View this thread: http://www.excelforum.com/showthread...hreadid=497154
    >




  3. #3
    Registered User
    Join Date
    09-29-2005
    Posts
    11
    Tom,

    Many thansk - that worked perfectly.

    Clive

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.2.0