Results 1 to 8 of 8

How to refer to entire a column in SUMIFs and VBA

Threaded View

  1. #1
    Registered User
    Join Date
    01-03-2020
    Location
    US
    MS-Off Ver
    2019
    Posts
    85

    Exclamation How to refer to entire a column in SUMIFs and VBA

    Hi, everyone
    I have a code for summarizing personnel work time while it's sensitive to 8 hours shift, means if the user types work time for a personnel in a specific date which their cumulative work time exceeds 8 hours, this code ignores it and just write 8 hours for that personnel in that date. This code was wrote by one of this forum's users, but I want to develop it to my real world problem in excel. In my own real world problem, I have large number of rows, maybe more than 10000 rows. In the last command, you see there is SumIfs object which refers to limited rows (rows 2 to 16). I want to develop it to entire rows in those determined columns. So, there is no need to make any change in the code every time I want to run the code (I update my excel table every week). I don't know how to make such a change in my code. I need to change all references such as R16C2 to the entire column so for large datasets, I don't need to make any change in my code). I'm new to VBA. Please help me to learn.
    And if it's possible, Please add some explanation between lines (green texts) so I can study the entire code.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by fa2020; 05-25-2020 at 07:29 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help revising Concatenate Formula
    By cjschulz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-28-2016, 03:20 PM
  2. revising a line of code
    By prdponce in forum Excel General
    Replies: 9
    Last Post: 12-08-2014, 03:56 PM
  3. [SOLVED] Need help on revising this if formula
    By thisring in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2013, 07:40 PM
  4. Need help revising formulas
    By RicksMom in forum Excel General
    Replies: 2
    Last Post: 03-21-2011, 03:10 PM
  5. Macro for Export/Import - need help revising a code
    By emptycucumber in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2009, 01:27 PM
  6. Combobox Revising with every access
    By sjumbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2006, 01:30 PM
  7. need help revising
    By day in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2006, 10:30 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