+ Reply to Thread
Results 1 to 4 of 4

Adding data to a closed workbook

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Adding data to a closed workbook

    Thanks in advance

    I have created a excel program with two workbook.
    Workbook1 holds all the userform to add data
    Workbook2 is the database
    Basically I store all data to WorkBook2 through userforms in WorkBook1. So far to add data to database(WorkBook2) I open the workBook2 along with WorkBook1 and close it when I close the WorkBook1. and working perfectly.

    Is there any way to put data into WorkBook2 without opening it. Application.Screenupdating is not not my choice.

    Thanks again

    This is a cross post and Link to original post

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Adding data to a closed workbook

    Yes, apparently there is.
    Last edited by Hawkeye16; 07-14-2014 at 06:15 AM. Reason: I stand corrected
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,973

    Re: Adding data to a closed workbook

    Yes - you can use ADO to write to a closed workbook. You haven't given any details to work with so here's a generic example:

    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Adding data to a closed workbook

    I stand corrected. So you just need to treat the workbook as a database and use a database connection and SQL statement to write to it without opening, interesting.

+ 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. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  2. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  3. [SOLVED] Trouble copying data from closed workbook into active workbook, referencing help
    By lepperga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 01:48 PM
  4. [SOLVED] Copying data from a closed workbook into an open workbook ignoring excel filter?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2013, 12:31 AM
  5. Export data from closed workbook to active workbook with ADO connection
    By Naresh27 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 01:08 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