+ Reply to Thread
Results 1 to 6 of 6

open excel file automatically on specific date

  1. #1
    Registered User
    Join Date
    05-27-2020
    Location
    singapore
    MS-Off Ver
    2013
    Posts
    11

    open excel file automatically on specific date

    Hi!
    if i have different date in E2 to E20. can i set excel to auto open when the date today matches the date from E2 to E20?
    Or can it send a email reminder etc?
    i tried google about it but with little information. tried for many days but cannot get it.

    Thank you very much all the experts!!

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: open excel file automatically on specific date

    it depends on where you want to open the excel app from. say for instance, you want to open it from another instance of excel that is already open (and inside an external workbook). all you would have to do in that case is open your target workbook with code, point to the cell that has the desired date of open, then if it IS that date, open a 2nd instance of the program. however, if you are asking whether or not you can open the actual Excel application through VBA code, yes you can. you can open it using that language from another other office program if it is open.

    the other thing you can do, which is probably something you have not dealt with, is open it using the SHELL of windows. the CMD prompt, in other words. via running a .bat file is an option. furthermore, if you want to get really clever, you can also do this task with virtually any desktop coding package available => PHP, Python, C, etc...

    and yes, you can send an email reminder to someone too. I assume you mean from outlook? email reminders in outlook are part of the object model of that program. and you can get that to happen within VBA itself by writing code like this:

    https://docs.microsoft.com/en-us/off...tlook.reminder

  3. #3
    Registered User
    Join Date
    05-27-2020
    Location
    singapore
    MS-Off Ver
    2013
    Posts
    11

    Re: open excel file automatically on specific date

    Hello vba_php! thank you for your reply!
    for the SHELL of windows that you suggested is it very difficult?
    if the first one which is the open the excel app how would it be done with VBA? sorry, i really have very little VBA skill. how do i target workbook with code?
    thank you!

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: open excel file automatically on specific date

    here are a couple of responses to what you have asked:
    Quote Originally Posted by feidifeidi View Post
    for the SHELL of windows that you suggested is it very difficult?
    see the following article to guide you on how to use that function:

    https://docs.microsoft.com/en-us/off...shell-function

    SHELL runs programs (executables), and you can either specify the full directory path of the program you want to run, or in some cases, you can simply type in the name of the file with the extension. so, for excel, you can actually type this into the VBA code editor:
    Please Login or Register  to view this content.
    and it will open excel for you. a new instance if excel is already open. and if it is not open, excel will open for the first time right in front of you.
    Quote Originally Posted by feidifeidi View Post
    if the first one which is the open the excel app how would it be done with VBA? sorry, i really have very little VBA skill. how do i target workbook with code?
    if you want to open a new workbook when running code from inside an excel application (a workbook that is already open), you would write this:
    Please Login or Register  to view this content.
    does this help?

  5. #5
    Registered User
    Join Date
    05-27-2020
    Location
    singapore
    MS-Off Ver
    2013
    Posts
    11

    Re: open excel file automatically on specific date

    Hi vba_php thank you for being patient to answer my question.

    i attached an example file.
    i want this file to open up when any of the "renew" column header show Yes.
    is it possible? i read through shell function but i am totally confused by it.

    Thank you in advance!
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: open excel file automatically on specific date

    Quote Originally Posted by feidifeidi View Post
    i want this file to open up when any of the "renew" column header show Yes.
    you want WHAT file to open up? the one you uploaded? the one that already has a RENEW column? you'll probably need a button. behind the button:
    Please Login or Register  to view this content.

+ 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] Open/Load TEXT file with Specific Date and start at specific Cell
    By chergian in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2017, 09:29 AM
  2. Automatically Open Excel and Run Macro When New File Automatically Detected
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-07-2016, 11:35 PM
  3. Open a csv file automatically at a certain time of the day without having excel open
    By Sparky2000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-04-2014, 06:52 AM
  4. Automatically open a file in a specific file path when another sheet is opened
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2014, 11:05 AM
  5. [SOLVED] Automatically open the latest date modified excel file in a folder
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2014, 01:35 PM
  6. [SOLVED] On file open, automatically scroll to today's date
    By Tony Valko in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2013, 04:13 PM
  7. automatically open a file at a specific time
    By juanjose in forum Excel General
    Replies: 1
    Last Post: 08-26-2009, 12:18 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