+ Reply to Thread
Results 1 to 2 of 2

VBA - updating files without opening them

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    VBA - updating files without opening them

    Good morning,

    I am trying to find if it is possible to update some closed excel files with a macro. Here is what I want to do:

    I have 20 excel files I update with analytics canvas (an external software). Let's call them Ax. ( A1, A2, A3,...., A20). Each month I update these files (I get 20 new files from analytics canvas and that I save over the A1 for instance, in order to keep the same source file.

    Then I created 20 excel files, let's call them Bx (B1, B2, B3,..., B20) - and each one is linked to one of the 20 from analytic canvas (A1 is linked to B1, A2 is linked to B2, ....A20 is linked to B20). The link is just a formula in the Bx file looking to a cell in Ax.

    Every month I have to update each B file.
    In theory, I will open the file A1, and B1. Then update the links and close both of them.
    I have 40 files so it is a little bit long...

    I would like to know if we can create a macro (in another excel file for instance) to update each B file without opening neither A or B. (I would create a macro for each file)
    the name of each file do not change.


    Thank you very much in advance for your help.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: VBA - updating files without opening them

    if it is possible to update some closed excel files with a macro
    As far as I know it's not possible, reading from a closed file yes but writing to it no.

    Then there is the great and unknown region called ADO (ActiveX Data Objects) I've added a link perhaps you may find some useful information in it. Myself I only got more confused but on a much higher level than before.

    http://support.microsoft.com/kb/257819

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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