Is there a way to reference cells using a variable in place of the actual row number? I am thinking of general applications such as:
For V = 5 to 100
If AV > 10 Then x = x + AV
Is there a way to reference cells using a variable in place of the actual row number? I am thinking of general applications such as:
For V = 5 to 100
If AV > 10 Then x = x + AV
What you want isFor V = 5 to 100
If AV > 10 Then x = x + AV
Please Login or Register to view this content.
---------------------------------------------------
ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
To insert code into the VBE (Visual Basic Editor)
- Copy the code.
- Open workbook to paste code into.
- Right click any worksheet tab, select View Code
- VBE (Visual Basic Editor) opens to that sheets object
- You may change to another sheets object or the This Workbook object by double clicking it in the Project window
- In the blank space below the word "General" paste the copied code.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks