Excel formula to VBA code -
how go turning excel formula =b4/b5 vba code? far, code not work of course:
activecell.formular1c1 = "=b4/b5"
as can tell, not familiar r1c1. if needed, have created function col_letter()
takes number , returns letter of corresponding column. appreciated!
as pointed out in comments @siddarth looking for:
activecell.formula = "=b4/b5"
if in hurry , need make macro work, compromise on code readability may acceptable. in case following:
- start recording macro
- do need do
- stop recording , extract line macro code
note work everything, may lead confusing code.
Comments
Post a Comment