Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I calculate my variable counter by counting the number of rows in the
previous worksheet. The value ends up being 107, which is correct. The problem I have is that I have to later functions I want to use that have a varying number of rows and I want use the counter variable as the row number. Basically, I want the statement below to work, except replacing the 107 with counter. 'First Shift Failure Data x = 2 Do While Cells(x, 1).Value < "" Cells(x, 5).Value = "=SUMPRODUCT(--(Data!R3C[4]:R[107]C[4]=""FIRST""),--(Data!R3C[5]:R[107]C[5]=RC1))" x = x + 1 Loop Any help is appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro prompts for a number to be used in this macro as a variable | Excel Programming | |||
Running a variable macro when any value is entered into a variable cell | Excel Programming | |||
Macro Creating Variable and using variable in a SQL statement | Excel Programming | |||
using one macro to set a variable in another | Excel Programming | |||
Variable Macro | Excel Programming |