+ Reply to Thread
Results 1 to 11 of 11

Very big workbook as source

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Very big workbook as source

    Hi,

    i have one main workbook and second source is very big (it will have thousends of rows).

    From main workbook i have formulas which are reading from source workbook using the same path as main workbook is.
    On open workbook event i am updating links to source workbook but sometimes it can cause errors.
    I can do error handlers but still somehow it can be not perfect.

    What is the best solution to have one source data and main workbook?
    You are putting all in one workbook or using buttons to read specific source workbook and open it.

    Your best option is...?

    Best,
    Jacek

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Very big workbook as source

    If the main book is too big to open, use ADO(but depends on data layouts/types) to read data to 2nd workbook is one idea.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Very big workbook as source

    Hi!
    If the main book is too big to open, use ADO(but depends on data layouts/types) to read data to 2nd workbook is one idea.
    You meant the source workbook is too big?
    Yes it is big, and will be opening for example 10 seconds.

    With Ado you can use source worbkook as recordset yes?
    But how to refer to recordset from formulas ?

    Now i have (from memory, there can be errros but i want to show you syntax) vlookup(B30, [C:/downloads/workbooks/Source workbook!Sheet1!A1:B5],2,0)

    What do you think to approch to force user to point to source workbook to have all formulas caclulated properly?
    Button --> choosing source workbook --> opening it --> formulas are updated automatically.

    Best,
    Jacek

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Very big workbook as source

    You can use Join in sql to work like LookUp formula, but not sure if it is faster or not.

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Very big workbook as source

    you mean assing to specific cell like .cells("B2").value = sqlStatement?

    Hmm...

    Jacek

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Very big workbook as source

    Only a few cells?
    You can still use it with the "Where" condition in sql.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Very big workbook as source

    from 10 to about 30 cells in one worksheet and i have about 6 worksheets, i do not know it would be good idea.

    I think opening source workbook but from user side via button - seems theb est option for me now.

    Best,
    Jacek

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Very big workbook as source

    It is up to you of course.

    I just gave you an alternative idea.

  9. #9
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Very big workbook as source

    thank you jindon,

    maybe anybody else?

    Best,
    Jacek

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Very big workbook as source

    By the way why do you need to open the source workbook?

    If your formula contains full path, you don't need to open...

  11. #11
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Very big workbook as source

    yes but this will required write code to change full path for specific user opening workbook.

    And i have to remember about Mac users...

    And simple and more safety way will be to point to specific source and do not this with macro i think on workbook opening.

+ 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: 2
    Last Post: 03-18-2017, 02:05 AM
  2. [SOLVED] Macro to find data in source workbook and copy paste to target workbook
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2014, 06:21 AM
  3. How do I copy data from one workbook to create drop down lists in another workbook
    By mikeuk24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 05:08 PM
  4. Filtering in another workbook, copying filtered data and pasting in source workbook
    By saadtariq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2012, 12:55 PM
  5. Create multiple sheets in new workbook based on credentials in source workbook
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2011, 10:31 AM
  6. copy values from a worksheet to another workbook. source workbook name unknown
    By sark666 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2009, 11:05 PM
  7. copying data from source workbook to target workbook by headers
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2009, 11:35 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