Dsum problem
Dsum problem
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Dsum problem

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    hello excel fans!!

    i have to use the dsum function in the vba code like this

    ActiveCell.FormulaR1C1 = "=Dsum([Clients.xls]DC!$E$1:$G$1871;3;I26:J32)"

    but i take an execution error 1004????

    somebody could help me!!!!

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    On 2002-04-18 07:08, murlock wrote:

    ActiveCell.FormulaR1C1 = "=Dsum([Clients.xls]DC!$E$1:$G$1871;3;I26:J32)"
    Looks like your syntax is wrong. Shouldn't it be something like:
    ActiveCell.FormulaR1C1 = "=Dsum([Clients.xls]DC!$E$1:$G$1871,3,I26:J32)"

    Syntax

    DSUM(database,field,criteria)

    Database is the range of cells that make up the list or database. A database is a list of related data in which rows of related information are records and columns of data are fields. The first row of the list contains labels for each column.

    Field indicates which column is used in the function. Field can be given as text with the column label enclosed between double quotation marks, such as "Age" or "Yield," or as a number that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.

    Criteria is the range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying a condition for the column.
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com