+ Reply to Thread
Results 1 to 4 of 4

Opening another excel file then closing it?

  1. #1
    Forum Contributor
    Join Date
    09-19-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    145

    Opening another excel file then closing it?

    Is there a way to have a macro open a certain file, copy all the data, woorkbook will only have one sheet, then close it again?

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Opening another excel file then closing it?

    You may try something like this......
    Please Login or Register  to view this content.
    Last edited by sktneer; 07-05-2015 at 01:23 AM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    09-19-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    145

    Re: Opening another excel file then closing it?

    ok, so say the name of the file is "AM" and is it located at c:/mj/Documents

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Opening another excel file then closing it?

    The file path and file name should be assigned like this.....
    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. Opening and Closing File in Multiple Programs
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2013, 02:55 PM
  2. Opening, Closing, and Opening Excel workbooks from MS Project
    By m007schneider in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2013, 03:22 PM
  3. Opening and closing a file in VB
    By tleaton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2011, 07:49 PM
  4. Opening & closing an excel file in a sharepoint
    By Vips_10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2011, 04:03 AM
  5. Closing and re-opening the same file in excel
    By thompsy121 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-19-2008, 09:11 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