+ Reply to Thread
Results 1 to 8 of 8

Open and close files using excel macro

  1. #1
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Open and close files using excel macro

    Hi,

    I have a folder which has a set of files (Files may be anything like excel,pdf,word..etc).My rrequirement is:
    When i run the macro the first file to last file should open and wait for 5 sec and then close..I mean first time the first file should open and wait for 5 sec and close..Next 2 nd files shoul open and close after 5 sec..next third files should open and close after 5 sec...Like wise till last file..Is this possible to achive through macro code..

    Thanks,
    Lakshmanan

  2. #2
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Open and close files using excel macro

    Can any one give me a idea..please...

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Open and close files using excel macro

    I don't understand why.
    You can do that, but only with excel files (in my experience)
    Last edited by patel45; 05-16-2014 at 06:44 AM.
    If solved remember to mark Thread as solved

  4. #4
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Open and close files using excel macro

    Thanks for the response
    We have 1000 of files in a folder.Every time we need to open the file and check wether it has a data or not.daily manually we are opening files and checking ..so only i came to this idea..is this possible?

  5. #5
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Open and close files using excel macro

    Im ok if we have any code for Excel..i have excel files only most of the times...

  6. #6
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Open and close files using excel macro

    why don't u use modified date? I can't imagine you would have someone stare at a screen with 100s of documents that open and close ever 5 seconds.

  7. #7
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Open and close files using excel macro

    We are checking full content of the documents.But for a quick check we are doing this type of review..Just open eacha nd every file and close the files after checking(Manually)So that am asking whethr we can able to do this through macro vba code..

  8. #8
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Open and close files using excel macro

    Quote Originally Posted by laxmanann View Post
    Thanks for the response
    We have 1000 of files in a folder.Every time we need to open the file and check wether it has a data or not.daily manually we are opening files and checking ..so only i came to this idea..is this possible?
    You can open all excel file and check automatically some content, last written row ....

+ 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] macro to open all files in a folder, save them, then close them
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2013, 06:40 PM
  2. [SOLVED] Macro to open and close all files in a folder and sub folders
    By BillDoor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2012, 06:51 AM
  3. Macro to Open, Save and Close Excel Files
    By az! in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 04:19 AM
  4. Macro to Open, Print and Close multiple PDF Files
    By Herve_Rob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2009, 05:08 AM
  5. Macro to open all files, make changes, save and close
    By certain_death in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2009, 03:42 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