Why is this not working?
I want the VBA to drop the funtion "N10 + P10" into Cell O10 if Cell B2 contains the name CanPlus 750![]()
Please Login or Register to view this content.
Why is this not working?
I want the VBA to drop the funtion "N10 + P10" into Cell O10 if Cell B2 contains the name CanPlus 750![]()
Please Login or Register to view this content.
Try this.
![]()
Please Login or Register to view this content.
If posting code please use code tags, see here.
I actually need that to run automatically. Such as whenever there is a change on the sheet.
How do I do that?
Nevermind. I got that to work. But how do i get it to remove the formula if that B2 doesn't contain "CanPlus 750"?
Seems like a dubious use of VBA ...![]()
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Well ****. Now it's throwing up an error. Run-time error'-2147417848 (80010108):': method "Range of object'-worksheet' failed
It probably is, but I don't know how else doing it.
How about just a static formula in O10?
=IF(ISNUMBER(SEARCH("CanPlus 750", B2)), N10 + P10, "")
That is what I did at first. The problem is, that cell is used to enter data if it isn't a "CanPlus 750"... And I dont think you can input a function into a Cell based on another cells value.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks