Results 1 to 6 of 6

Thread: sumifs in VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,970
    I don't have xl2007 however maj_group should be a range but it looks like it's a string, likewise bill_summary.
    To define them as ranges dim each one as range:
    Dim maj group As range, bill_summary As Range, mtd_ttl_hours As Range
    .
    Then use the Set statement:
    set maj_group = range("C:C")
    set bill_summary = range("D:D")
    set mtd_ttl_hours = range("E:E")
    you may want to qualify the ranges if they're not on the active sheet.
    Last edited by Aussiebear; 05-04-2025 at 11:11 PM.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

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