![]() |
VBA code to "background-color" a cell obtaining a value from Row
2003
What syntax can I add to a an If() statement to test if a cell is receiving input (referenced to) from any cells below it? (In violation of the best-practice of top-down worksheet organization) I get the concept that Cell(2,1) which is referred to Cell(1,1) would be an example. But what is the best surrounding syntax to make sure that my test is accurate? Thanks EagleOne |
VBA code to "background-color" a cell obtaining a value from Row
Got it!
If MyCell.DirectPrecedents.Row MyCell.Row Then MyCell.Interior.ColorIndex = 3 Any other thoughts? EagleOne wrote: 2003 What syntax can I add to a an If() statement to test if a cell is receiving input (referenced to) from any cells below it? (In violation of the best-practice of top-down worksheet organization) I get the concept that Cell(2,1) which is referred to Cell(1,1) would be an example. But what is the best surrounding syntax to make sure that my test is accurate? Thanks EagleOne |
All times are GMT +1. The time now is 06:18 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com