+ Reply to Thread
Results 1 to 3 of 3

hard code the number of rows used with R1C1 macro recording

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    hard code the number of rows used with R1C1 macro recording

    In cell AU2 I have the following formula I want to use in a macro. I want to be able to hard code the number of rows being using (relative value)
    Please Login or Register  to view this content.
    With the macro recorder I get the following formula:
    Please Login or Register  to view this content.
    I want to hard code the "R[21]" portion of formula. I tried changing code to following but it is not working:
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: hard code the number of rows used with R1C1 macro recording

    I was able to write the code without having to use the R1C1 formula. I put the actual formula in the macro but am not able to insert the AgentCount within the formula.

    Current formula:
    Please Login or Register  to view this content.
    I am trying to update to:
    Please Login or Register  to view this content.
    Thanks in advance for any comments.

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: hard code the number of rows used with R1C1 macro recording

    Sorry I did not clarify on my last post. I didn't use the macro recorder with the code supplied. I used the formuala desired with slight modifications to make it work in VBA. I want to incorporate the AgentCount, which is in column H (Note: the agent count changes every week). I have attached a sample of spreadsheet with desired results (column AX). Thanks for any comments.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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