Hello. Do I have to do range.formula for a formula? or Can I just write "=" and the write formula.
Hello. Do I have to do range.formula for a formula? or Can I just write "=" and the write formula.
You don't "have" to use .Formula, just like you don't have to use .Value, even though it's good practice.
For example, if I have 1 in A1, and 2 in A2, the following code would show 3 in A3:
![]()
Please Login or Register to view this content.
It's very bad practice to omit the property. Just recently on the forum someone got bit trying to insert an R1C1 formula using the (default) Value property -- which will work as long as the formula is unambiguously R1C1:
Unfortunately, if it can be interpreted as A1, it will be (and it was):![]()
Please Login or Register to view this content.
Relying on default properties, or using the wrong property, are hallmarks of an amateur. You don't wanna be that.![]()
Please Login or Register to view this content.
Last edited by shg; 05-04-2015 at 03:56 PM.
Entia non sunt multiplicanda sine necessitate
Words to live by, shg, thanks![]()
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
WTY, Ford![]()
To hard to understand, that's the main reason I don't use R1C1. I can work it out if I have to, but why bother![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks