+ Reply to Thread
Results 1 to 3 of 3

Sumifs using vba in closed workbook

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Post Sumifs using vba in closed workbook

    Hi everybody,
    is there any way to sumifs values in the closed workbook using the vba without opening and closing "Data" file.
    I know that i can't use sumifs in the closed workbook but maybe there is another way of how to do this in vba.

    I would like to do this calculation every time i open the workbook, and if possible without opening and closing "Data" file, because this file is very heavy and my pc at work is slow.
    Please see below the formula which i'm using now:

    =SUMIFS('D:\Test\Data\[DataBase.xlsm]DataBase'!$U$2:$U$1048576,'D:\Test\Data\[DataBase.xlsm]DataBase'!$T$2:$T$1048576,T2,'D:\Test\Data\[DataBase.xlsm]DataBase'!$V$2:$V$1048576,AI6)

    Thanks in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Have you considered reviewing the formulas?

    As they are you are using entire columns.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Sumifs using vba in closed workbook

    Hi Norie,
    what do you mean by using entire column?
    is it this:
    =SUMIFS('D:\Test\Data\[DataBase.xlsm]DataBase'!U:U,'D:\Test\Data\[DataBase.xlsm]DataBase'!T:T,T2,'D:\Test\Data\[DataBase.xlsm]DataBase'!V:V,AI6)
    It doesn't matter it can be entire column

    Thanks in advance

+ 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. [SOLVED] SUMIFS returns a #Value error when the external spreadsheet is closed.
    By adil.master in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-27-2017, 12:37 PM
  2. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  3. [SOLVED] Help with SUMIFS with closed workbook
    By reem01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-03-2014, 06:22 PM
  4. #VALUE errer received on a SUMIFS formula to a closed workbook
    By tom257 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 06:35 AM
  5. Copy One Sheet From One Closed Workbook To Another Closed WB
    By teshiburu1988 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2009, 11:49 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