I have an old Excel application that someone made, and I am wondering what this does:
Range("AF6") = "FALSE"
Edit: I discovered that it sets the cell to False. This changes the color of another cell, how does it do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is VBA short-form for setting the value of a range of cells (or in this case, a single cell). So the example you’ve provided will actually insert the text value “FALSE” into cell AF6.
If the colour of the other cell is not being set in code, then I would suggest it was done through conditional formatting.