monkeyexcel221
New Member
- Joined
- Jan 6, 2022
- Messages
- 2
- Office Version
- 2021
- 2019
- Platform
- Windows
Hello Everyone:
I posted a screenshot of my question below. I am new to VBA to any help will be much appreciated!!
I want to dynamically change cell C2 using VBA Code if the values on row 4 = 1. I want this to keep looping until the values on row 4 = 0.
For example, since cell E4 = 1, cell C2 changes to value in cell E2 which is 1. Since cell F4 = 1, cell C2 changes to value in F2, which is 2 and so on but stops at column H because cell H4 = 0.
Any idea on how to do this?
Thank you very much.
I posted a screenshot of my question below. I am new to VBA to any help will be much appreciated!!
I want to dynamically change cell C2 using VBA Code if the values on row 4 = 1. I want this to keep looping until the values on row 4 = 0.
For example, since cell E4 = 1, cell C2 changes to value in cell E2 which is 1. Since cell F4 = 1, cell C2 changes to value in F2, which is 2 and so on but stops at column H because cell H4 = 0.
Any idea on how to do this?
Thank you very much.