+ Reply to Thread
Results 1 to 4 of 4

Use one file to accumulate cells on a second file(closed).

  1. #1
    Registered User
    Join Date
    07-09-2008
    Location
    Papua New Guinea
    Posts
    6

    Use one file to accumulate cells on a second file(closed).

    I want to improve my spreadsheet from accumulating entries in same cell using a single spreadheet. Please refer to my previous which came out successfull. thread:http://www.excelforum.com/showthread...ght=accumulate

    I now have 2 spreadsheet files 1st for Daily Entries and 2nd Progressive Totals. Both files have identical formats.

    How can I program it so that the while the Progress Totals file is closed, daily entries entered on the Daily Entrie file accumulates the corresponding cells in the Progress Total file?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In a word (or two), you can't. VBA can retrieve values from closed files, but to my knowledge, cannot change them.

  3. #3
    Registered User
    Join Date
    07-09-2008
    Location
    Papua New Guinea
    Posts
    6
    Thankyou SHG for the prompt response. I knew it would be difficult but just decided to ask on the forum.

    It's just that I want to keep track of the last entry I made? But not a big worry for now.

    Thanks for your help.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    May have found a way to do this.

    1) Create a new workbook. In A1 enter H1. This is the column Heading. Save the file as c:\temp\a.xls
    2) In a new open workbook, enter your input number in A1 (say 15). Insert a general module, and insert the code

    Please Login or Register  to view this content.
    Run the code.

    Open a.xls and you should find that A2 contains 15. Shut down a.xls, and change the value in A1 from 15 to 20. Rerun the code. Open a.xls and you should find that A2 is now 35.

    See how that goes, and see if it can be converted to suit your situation.

    rylo

+ 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