+ Reply to Thread
Results 1 to 5 of 5

Delete worksheets when certain time has lapsed (auto run)

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    3

    Delete worksheets when certain time has lapsed (auto run)

    Hello all! New to the forum here and I have a question.

    I am trying to write a macro which will auto run and delete all worksheets and/or data from the book if the current date/time is past a user defined date/time.

    I have read several threads so far about similar situations, but i have been unsuccessful in combining them all in a workable macro

    Help!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Delete worksheets when certain time has lapsed (auto run)

    How do you want to run this, check when the workbook is opened or closed?

    Deleting sheets is a bit final, why not hide them?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-21-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Delete worksheets when certain time has lapsed (auto run)

    I would like it to run at open. A file copy will be kept electronically and the macro will only be in certain copies. Delete is def. the way I would like to go. I am trying to provide a brief look to external sources without giving them an extended time to replicate.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Delete worksheets when certain time has lapsed (auto run)

    So do you want to delete the sheet say 10 minutes after opening?

  5. #5
    Registered User
    Join Date
    01-21-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Delete worksheets when certain time has lapsed (auto run)

    Prob delete 2 days after opening. I would like to have it tied to a user defined cell which will be hidden from view. The user before sending out could specify the view time

+ 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