+ Reply to Thread
Results 1 to 10 of 10

Open a csv file automatically at a certain time of the day without having excel open

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2014
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    15

    Open a csv file automatically at a certain time of the day without having excel open

    Hello All,
    Is it possible to do the following using Excel VBA:-
    a)Open a csv file automatically (with Excel not running) at a certain time of the day (every day) and run a macro
    b)The contents of Cell A1 in the file will have a Date,can the file be saved with name referenced to the Date mentioned in Cell A1 just before midnight each night
    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Open a csv file automatically at a certain time of the day without having excel open

    You can query it, but how do you want it to work, you'll need something to run some code in????
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    08-02-2014
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    15

    Re: Open a csv file automatically at a certain time of the day without having excel open

    Hello nathansav,
    What I meant to say is this:-
    If Excel wasn't open, is it possible to start Excel at a certain time of the day and open a csv file
    Once the csv file was open,Run a Macro and save the file with the filename referenced to the Date mentioned in Cell A1.
    Sorry for the misunderstanding.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Open a csv file automatically at a certain time of the day without having excel open

    Yes, but it will need to be done with windows scheduler, or some sort of non-excel code sitting on a machine all day every day.

  5. #5
    Registered User
    Join Date
    08-02-2014
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    15

    Re: Open a csv file automatically at a certain time of the day without having excel open

    I have never used the windows scheduler neither have I written any "non-excel" code. How would I go about accomplishing this?

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Open a csv file automatically at a certain time of the day without having excel open

    I think it will be your administrators who will need to set that up. Non excel code, would be VB or C# through something like Visual Studio.

  7. #7
    Registered User
    Join Date
    08-02-2014
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    15

    Re: Open a csv file automatically at a certain time of the day without having excel open

    Would the "Non Excel" code be hard to do? I have never used Visual Studio.

  8. #8
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Open a csv file automatically at a certain time of the day without having excel open

    If you havent used it, then i'd say it will be too hard. The code itself wont be that simple, but you dont fully understand so it will be hard to do.

    Speak to your admin guys and see what you have available to use.

  9. #9
    Registered User
    Join Date
    08-02-2014
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    15

    Re: Open a csv file automatically at a certain time of the day without having excel open

    I will ask them to see if they can help.

    Thank you very much for your feedback.
    Have a great day!

  10. #10
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Open a csv file automatically at a certain time of the day without having excel open

    No problems. They should be able to set up a scheduled opening. One thing to remember is to give ample time for the macro to process if you are also closing the book via scheduler, or you could put the closing code at the end of the macro.

+ 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. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 AM
  2. automatically open a file at a specific time
    By juanjose in forum Excel General
    Replies: 1
    Last Post: 08-26-2009, 12:18 PM
  3. open a file automatically at a time if excel is closed
    By juanjose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2009, 11:27 AM
  4. Replies: 0
    Last Post: 06-25-2007, 11:56 AM
  5. [SOLVED] Can I get an excel doc. to open automatically at a certain time?
    By macleod in forum Excel General
    Replies: 1
    Last Post: 06-12-2006, 11:35 AM

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