Results 1 to 10 of 10

Adding "Lastrow" function to these formulas:

Threaded View

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    North Carolina
    MS-Off Ver
    Office 2007
    Posts
    79

    Adding "Lastrow" function to these formulas:

    Hello,
    I've been trying for a few hours now to add Lastrow Functionality to a formula I'm using as it's cycling through over 100,000 empty cells for each formula and making my Macro very very slow. My spreadsheet will have a highly variable number of rows.

    Here's the formula I'm using, along with the Lastrow code that's served me will in the past:

    lastrow = Cells(Cells.Rows.Count, "G").End(xlUp).Row
    
    Range("AB3").Select
    ActiveCell.FormulaR1C1 = "=ColorFunction(R3C27,C7:C7,TRUE)"
    For anyone who might what to know what this is for (bigger picture), I'm using this code from Ozgrid to count and sum based on font color:
    http://www.ozgrid.com/VBA/sum-count-cells-by-color.htm

    Thanks so much for everyone's help in advance. I've been working on this for too long, I think my brain is going numb (yet it doesn't seem that complicated...?)
    Last edited by FDibbins; 04-25-2015 at 08:05 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Get LastRow using "Find" only works for Col A
    By capson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2015, 11:43 AM
  2. "Add Row" and "Remove Row" Buttons... adding rows with formulas down filled
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 02:44 AM
  3. Adding multiple "find" with "left" /"Right"
    By Daniel1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-22-2014, 04:33 PM
  4. How to transpose data into range ("A1:G" & lastrow)
    By jasondu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2012, 10:39 AM
  5. Recognize "formulas "result" as "typed data", through and through.
    By gandolff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2009, 01:30 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