jaylotheman
New Member
- Joined
- Oct 5, 2011
- Messages
- 7
I need help creating a VBA IF statement.
For example this could be used for a budget, a forecast etc.
If the value in cell K17 = "F00" of Sheet1 then clear the values (not formats) of the cells in the Named Range "OneElevenSalary" of Sheet2.
If the value in cell K17 = "F01" of Sheet1 then clear the values (not formats) of the cells in the Named Range "Two10Salary" of Sheet2.
If the value in cell K17 = "F02" of Sheet1 then clear the values (not formats) of the cells in the Named Range "Three9Salary" of Sheet2.
Etc.
Does that make sense? Anybody able to shed light on how to do this? Thanks in advance!
For example this could be used for a budget, a forecast etc.
If the value in cell K17 = "F00" of Sheet1 then clear the values (not formats) of the cells in the Named Range "OneElevenSalary" of Sheet2.
If the value in cell K17 = "F01" of Sheet1 then clear the values (not formats) of the cells in the Named Range "Two10Salary" of Sheet2.
If the value in cell K17 = "F02" of Sheet1 then clear the values (not formats) of the cells in the Named Range "Three9Salary" of Sheet2.
Etc.
Does that make sense? Anybody able to shed light on how to do this? Thanks in advance!