+ Reply to Thread
Results 1 to 4 of 4

Check computer date, before opening excel sheet.

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Check computer date, before opening excel sheet.

    Hi All.

    I would like to add an event in my excel sheet, that checks the computer date, if this date is passed a defined date, then the sheet will retur a text box, that the sheet is outdated and please contact...

    So in short like this statements:

    VBA.
    In code, wirte the date that makes the sheets obsolete.
    In code, write text to show in box.

    Codes does:
    Check computer date.
    If date passed, date in code, then show box, with text also defined in code.
    if not passsed, open sheet.

    Hope somebody haved tried this, and have a solution.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Check computer date, before opening excel sheet.

    Try something like this...


    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Re: Check computer date, before opening excel sheet.

    Quote Originally Posted by alphafrog View Post
    try something like this...


    Please Login or Register  to view this content.
    very coool - works like a charm.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Check computer date, before opening excel sheet.

    Now please add a link to his thread to your other post for this issue - save anyone taking the time to respond to something already solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VB Code to restrict opening excel file for certain computer name only
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-07-2021, 07:51 AM
  2. Replies: 1
    Last Post: 03-13-2015, 01:36 PM
  3. Replies: 2
    Last Post: 05-31-2014, 02:05 AM
  4. Upon opening the WorkSheet, how to check the date
    By alghareeb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2009, 08:52 AM
  5. Problem with opening at other computer
    By kaczakicha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2009, 04:39 AM
  6. [SOLVED] Opening an excel file on another computer changes the setup on fil
    By Viviana in forum Excel General
    Replies: 3
    Last Post: 11-29-2005, 04:55 PM
  7. [SOLVED] OPENING EXCEL FREEZES COMPUTER
    By Lindsay Graham in forum Excel General
    Replies: 5
    Last Post: 02-14-2005, 08:06 PM

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